lots of enums

This commit is contained in:
Kyle Spearrin 2019-04-09 17:14:16 -04:00
parent 9e3ee50020
commit 36780c5ef8
9 changed files with 163 additions and 0 deletions

View file

@ -0,0 +1,12 @@
namespace Bit.Core.Enums
{
public enum CipherType : byte
{
// Folder is deprecated
//Folder = 0,
Login = 1,
SecureNote = 2,
Card = 3,
Identity = 4
}
}

View file

@ -0,0 +1,50 @@
using System.ComponentModel.DataAnnotations;
namespace Bit.Core.Enums
{
public enum DeviceType : byte
{
[Display(Name = "Android")]
Android = 0,
[Display(Name = "iOS")]
iOS = 1,
[Display(Name = "Chrome Extension")]
ChromeExtension = 2,
[Display(Name = "Firefox Extension")]
FirefoxExtension = 3,
[Display(Name = "Opera Extension")]
OperaExtension = 4,
[Display(Name = "Edge Extension")]
EdgeExtension = 5,
[Display(Name = "Windows")]
WindowsDesktop = 6,
[Display(Name = "macOS")]
MacOsDesktop = 7,
[Display(Name = "Linux")]
LinuxDesktop = 8,
[Display(Name = "Chrome")]
ChromeBrowser = 9,
[Display(Name = "Firefox")]
FirefoxBrowser = 10,
[Display(Name = "Opera")]
OperaBrowser = 11,
[Display(Name = "Edge")]
EdgeBrowser = 12,
[Display(Name = "Internet Explorer")]
IEBrowser = 13,
[Display(Name = "Unknown Browser")]
UnknownBrowser = 14,
[Display(Name = "Android")]
AndroidAmazon = 15,
[Display(Name = "UWP")]
UWP = 16,
[Display(Name = "Safari")]
SafariBrowser = 17,
[Display(Name = "Vivaldi")]
VivaldiBrowser = 18,
[Display(Name = "Vivaldi Extension")]
VivaldiExtension = 19,
[Display(Name = "Safari Extension")]
SafariExtension = 20
}
}

View file

@ -0,0 +1,9 @@
namespace Bit.Core.Enums
{
public enum FieldType : byte
{
Text = 0,
Hidden = 1,
Boolean = 2
}
}

View file

@ -0,0 +1,20 @@
using System.ComponentModel.DataAnnotations;
namespace Bit.Core.Enums
{
public enum PaymentMethodType : byte
{
[Display(Name = "Card")]
Card = 0,
[Display(Name = "Bank Account")]
BankAccount = 1,
[Display(Name = "PayPal")]
PayPal = 2,
[Display(Name = "BitPay")]
BitPay = 3,
[Display(Name = "Credit")]
Credit = 4,
[Display(Name = "Wire Transfer")]
WireTransfer = 5,
}
}

View file

@ -0,0 +1,22 @@
using System.ComponentModel.DataAnnotations;
namespace Bit.Core.Enums
{
public enum PlanType : byte
{
[Display(Name = "Free")]
Free = 0,
[Display(Name = "Families")]
FamiliesAnnually = 1,
[Display(Name = "Teams (Monthly)")]
TeamsMonthly = 2,
[Display(Name = "Teams (Annually)")]
TeamsAnnually = 3,
[Display(Name = "Enterprise (Monthly)")]
EnterpriseMonthly = 4,
[Display(Name = "Enterprise (Annually)")]
EnterpriseAnnually = 5,
[Display(Name = "Custom")]
Custom = 6
}
}

View file

@ -0,0 +1,7 @@
namespace Bit.Core.Enums
{
public enum SecureNoteType : byte
{
Generic = 0
}
}

View file

@ -0,0 +1,18 @@
using System.ComponentModel.DataAnnotations;
namespace Bit.Core.Enums
{
public enum TransactionType : byte
{
[Display(Name = "Charge")]
Charge = 0,
[Display(Name = "Credit")]
Credit = 1,
[Display(Name = "Promotional Credit")]
PromotionalCredit = 2,
[Display(Name = "Referral Credit")]
ReferralCredit = 3,
[Display(Name = "Refund")]
Refund = 4,
}
}

View file

@ -0,0 +1,13 @@
namespace Bit.Core.Enums
{
public enum TwoFactorProviderType : byte
{
Authenticator = 0,
Email = 1,
Duo = 2,
YubiKey = 3,
U2f = 4,
Remember = 5,
OrganizationDuo = 6
}
}

View file

@ -0,0 +1,12 @@
namespace Bit.Core.Enums
{
public enum UriMatchType : byte
{
Domain = 0,
Host = 1,
StartsWith = 2,
Exact = 3,
RegularExpression = 4,
Never = 5
}
}