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,17 @@
namespace SWAD.API.Consts.Enums;
public enum MusicService
{
/// <summary>
/// Spotify Service
/// </summary>
Spotify,
/// <summary>
/// Tidal Service
/// </summary>
Tidal,
/// <summary>
/// Yandex Service
/// </summary>
Yandex
}

View File

@@ -0,0 +1,31 @@
namespace SWAD.API.Consts.Enums;
/// <summary>
/// Service errors for controller
/// </summary>
public enum ServiceResult
{
/// <summary>
/// Returns on the successful executed state
/// </summary>
Success,
/// <summary>
/// Returns on the unsuccessful executed state
/// </summary>
Failure,
/// <summary>
/// Returns on the unsuccessful executed state not by code
/// </summary>
NoResponse,
/// <summary>
/// Returns on the unsuccessful executed state by user
/// </summary>
BadRequest,
/// <summary>
/// Returns on the unsuccessful executed state by service
/// </summary>
NotFound
}

View File

@@ -0,0 +1,14 @@
namespace SWAD.API.Consts;
public static class ErrorResources
{
public const string SomethingWentWrong = "I don't know what but something went wrong";
public const string ApiNotRespond = "Service provider not respond, please try later";
public const string BadRequest = "Oops, request is bad, dude!";
public const string Unknown = "Problem really unknown... I don't even know what else to say";
public const string NotFound = "That service is really dummy, man... Not found that track";
//For exceptions
public const string Unsuccessful = "Request unsuccessful";
}