chore: init commit from GitHub
Some checks are pending
Deploy / update (push) Waiting to run
Build Project .NET / build (push) Waiting to run

This commit is contained in:
Lisoveliy
2025-05-12 19:44:33 +03:00
parent 11a3f40596
commit aebe654c38
107 changed files with 18953 additions and 403 deletions

View 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!;
}

View 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!;
}

View File

@@ -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!;
}

View File

@@ -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!;
}