chore: init commit from GitHub
This commit is contained in:
17
SWAD.API/Consts/Enums/MusicService.cs
Normal file
17
SWAD.API/Consts/Enums/MusicService.cs
Normal 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
|
||||
}
|
||||
31
SWAD.API/Consts/Enums/ServiceResult.cs
Normal file
31
SWAD.API/Consts/Enums/ServiceResult.cs
Normal 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
|
||||
}
|
||||
14
SWAD.API/Consts/ErrorResources.cs
Normal file
14
SWAD.API/Consts/ErrorResources.cs
Normal 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";
|
||||
}
|
||||
Reference in New Issue
Block a user