Moved projects to their own separate subdirectories
This commit is contained in:
22
API/YABA.Common/Lookups/ClaimsLookup.cs
Normal file
22
API/YABA.Common/Lookups/ClaimsLookup.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using YABA.Common.Attributes;
|
||||
|
||||
namespace YABA.Common.Lookups
|
||||
{
|
||||
public enum ClaimsLookup
|
||||
{
|
||||
[ClaimNameAttribute("https://dev.iwanaga.moe/api/auth_provider_id")]
|
||||
AuthProviderId = 1,
|
||||
|
||||
[ClaimNameAttribute("https://dev.iwanaga.moe/api/email_address")]
|
||||
UserEmail = 2,
|
||||
|
||||
[ClaimNameAttribute("https://dev.iwanaga.moe/api/email_verified")]
|
||||
IsEmailConfirmed = 3,
|
||||
|
||||
[ClaimNameAttribute("https://dev.iwanaga.moe/api/username")]
|
||||
Username = 4,
|
||||
|
||||
[ClaimNameAttribute("https://dev.iwanaga.moe/api/id")]
|
||||
UserId = 5
|
||||
}
|
||||
}
|
||||
34
API/YABA.Common/Lookups/CrudResultLookup.cs
Normal file
34
API/YABA.Common/Lookups/CrudResultLookup.cs
Normal file
@ -0,0 +1,34 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace YABA.Common.Lookups
|
||||
{
|
||||
public enum CrudResultLookup
|
||||
{
|
||||
[Display(Name = "Insert failed")]
|
||||
CreateFailed = 1,
|
||||
|
||||
[Display(Name = "Insert succeeded")]
|
||||
CreateSucceeded = 2,
|
||||
|
||||
[Display(Name = "Insert failed. Entry already exists")]
|
||||
CreateFailedEntryExists = 3,
|
||||
|
||||
[Display(Name = "Update failed")]
|
||||
UpdateFailed = 4,
|
||||
|
||||
[Display(Name = "Update succeeded")]
|
||||
UpdateSucceeded = 5,
|
||||
|
||||
[Display(Name = "Delete failed")]
|
||||
DeleteFailed = 6,
|
||||
|
||||
[Display(Name = "Delete succeeded")]
|
||||
DeleteSucceeded = 7,
|
||||
|
||||
[Display(Name = "Retrieve failed")]
|
||||
RetrieveFailed = 8,
|
||||
|
||||
[Display(Name = "Retrieve successful")]
|
||||
RetrieveSuccessful = 9
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user