chore: init commit from GitHub
This commit is contained in:
13
SWAD.API/Models/Config/ApiServices/ApiServicesConfig.cs
Normal file
13
SWAD.API/Models/Config/ApiServices/ApiServicesConfig.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using SWAD.API.Models.Config.ApiServices.Structure;
|
||||
|
||||
namespace SWAD.API.Models.Config.ApiServices;
|
||||
|
||||
// ReSharper disable once ClassNeverInstantiated.Global because: Is structure for config
|
||||
public class ApiServicesConfig
|
||||
{
|
||||
public const string ConfigName = "APIServices";
|
||||
|
||||
// ReSharper disable once PropertyCanBeMadeInitOnly.Global
|
||||
// ReSharper disable once NullableWarningSuppressionIsUsed
|
||||
public ApiServiceData[] ServicesData { get; set; } = null!;
|
||||
}
|
||||
10
SWAD.API/Models/Config/ApiServices/Structure/ApiPaths.cs
Normal file
10
SWAD.API/Models/Config/ApiServices/Structure/ApiPaths.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace SWAD.API.Models.Config.ApiServices.Structure;
|
||||
|
||||
// ReSharper disable once ClassNeverInstantiated.Global because: Is structure for config
|
||||
public class ApiPaths
|
||||
{
|
||||
// ReSharper disable NullableWarningSuppressionIsUsed
|
||||
public string Search { get; set; } = null!;
|
||||
public string GetTrack { get; set; } = null!;
|
||||
public string GetArtist { get; set; } = null!;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace SWAD.API.Models.Config.ApiServices.Structure;
|
||||
|
||||
// ReSharper disable once ClassNeverInstantiated.Global because: Is structure for config
|
||||
public class ApiServiceData
|
||||
{
|
||||
// ReSharper disable NullableWarningSuppressionIsUsed
|
||||
public string Name { get; set; } = null!;
|
||||
public string ClientId { get; set; } = null!;
|
||||
public string Secret { get; set; } = null!;
|
||||
public ApiServiceEndpoints Endpoints { get; set; } = null!;
|
||||
public ApiPaths ApiPaths { get; set; } = null!;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace SWAD.API.Models.Config.ApiServices.Structure;
|
||||
|
||||
// ReSharper disable once ClassNeverInstantiated.Global because: Is structure for config
|
||||
public class ApiServiceEndpoints
|
||||
{
|
||||
// ReSharper disable NullableWarningSuppressionIsUsed
|
||||
public string Base { get; set; } = null!;
|
||||
public string Api { get; set; } = null!;
|
||||
public string Token { get; set; } = null!;
|
||||
public string[] MusicLink { get; set; } = null!;
|
||||
}
|
||||
8
SWAD.API/Models/Config/ServicesEndpointsConfig.cs
Normal file
8
SWAD.API/Models/Config/ServicesEndpointsConfig.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace SWAD.API.Models.Config;
|
||||
|
||||
public class ServicesEndpointsConfig
|
||||
{
|
||||
public const string ConfigName = "ServicesEndpoints";
|
||||
// ReSharper disable once NullableWarningSuppressionIsUsed
|
||||
public string Redis { get; init; } = null!;
|
||||
}
|
||||
Reference in New Issue
Block a user