mirror of
https://github.com/hmaxnl/SharpRSS.git
synced 2025-01-18 12:54:20 +01:00
Implementing API base functionality.
This commit is contained in:
parent
e1f33c96c2
commit
1a686219ff
17
SharpRSS.API.Contracts/DTO/ApiKey.cs
Normal file
17
SharpRSS.API.Contracts/DTO/ApiKey.cs
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
namespace SharpRSS.API.Contracts.DTO
|
||||||
|
{
|
||||||
|
public record ApiKey()
|
||||||
|
{
|
||||||
|
public string Key { get; }
|
||||||
|
public string Usage { get; }
|
||||||
|
public KeyStatus Status { get; }
|
||||||
|
public string Message { get; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public enum KeyStatus
|
||||||
|
{
|
||||||
|
Active,
|
||||||
|
Disabled,
|
||||||
|
Unavailable
|
||||||
|
}
|
||||||
|
}
|
10
SharpRSS.API.Contracts/RssConnection.cs
Normal file
10
SharpRSS.API.Contracts/RssConnection.cs
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
namespace SharpRSS.API.Contracts
|
||||||
|
{
|
||||||
|
public class RssConnection
|
||||||
|
{
|
||||||
|
public RssConnection(string connection, string apiKey)
|
||||||
|
{
|
||||||
|
// Identify with server
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
18
SharpRSS.API.Contracts/SharpRSS.API.Contracts.csproj
Normal file
18
SharpRSS.API.Contracts/SharpRSS.API.Contracts.csproj
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>netstandard2.1</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
<LangVersion>10</LangVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\ToolQit\ToolQit\ToolQit.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Folder Include="Auth" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
|
@ -18,6 +18,7 @@
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\..\ToolQit\ToolQit.Logging.Serilog\ToolQit.Logging.Serilog.csproj" />
|
<ProjectReference Include="..\..\ToolQit\ToolQit.Logging.Serilog\ToolQit.Logging.Serilog.csproj" />
|
||||||
|
<ProjectReference Include="..\SharpRSS.API.Contracts\SharpRSS.API.Contracts.csproj" />
|
||||||
<ProjectReference Include="..\ToolQit\ToolQit\ToolQit.csproj" />
|
<ProjectReference Include="..\ToolQit\ToolQit\ToolQit.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\..\ToolQit\ToolQit.Logging.Serilog\ToolQit.Logging.Serilog.csproj" />
|
<ProjectReference Include="..\..\ToolQit\ToolQit.Logging.Serilog\ToolQit.Logging.Serilog.csproj" />
|
||||||
|
<ProjectReference Include="..\SharpRSS.API.Contracts\SharpRSS.API.Contracts.csproj" />
|
||||||
<ProjectReference Include="..\ToolQit\ToolQit\ToolQit.csproj" />
|
<ProjectReference Include="..\ToolQit\ToolQit\ToolQit.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpRSS.API", "SharpRSS.AP
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpRSS.Blazor", "SharpRSS.Blazor\SharpRSS.Blazor.csproj", "{28FA97A5-ECAE-4697-BA48-DA1C62E5B303}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpRSS.Blazor", "SharpRSS.Blazor\SharpRSS.Blazor.csproj", "{28FA97A5-ECAE-4697-BA48-DA1C62E5B303}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpRSS.API.Contracts", "SharpRSS.API.Contracts\SharpRSS.API.Contracts.csproj", "{90D669D4-8B4C-4A9D-BA6B-1CB840B69B48}"
|
||||||
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
@ -45,6 +47,10 @@ Global
|
||||||
{28FA97A5-ECAE-4697-BA48-DA1C62E5B303}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{28FA97A5-ECAE-4697-BA48-DA1C62E5B303}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{28FA97A5-ECAE-4697-BA48-DA1C62E5B303}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{28FA97A5-ECAE-4697-BA48-DA1C62E5B303}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{28FA97A5-ECAE-4697-BA48-DA1C62E5B303}.Release|Any CPU.Build.0 = Release|Any CPU
|
{28FA97A5-ECAE-4697-BA48-DA1C62E5B303}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{90D669D4-8B4C-4A9D-BA6B-1CB840B69B48}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{90D669D4-8B4C-4A9D-BA6B-1CB840B69B48}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{90D669D4-8B4C-4A9D-BA6B-1CB840B69B48}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{90D669D4-8B4C-4A9D-BA6B-1CB840B69B48}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
|
Loading…
Reference in New Issue
Block a user