mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-24 11:55:38 +01:00
lots of enums
This commit is contained in:
parent
9e3ee50020
commit
36780c5ef8
12
src/Core/Enums/CipherType.cs
Normal file
12
src/Core/Enums/CipherType.cs
Normal 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
|
||||||
|
}
|
||||||
|
}
|
50
src/Core/Enums/DeviceType.cs
Normal file
50
src/Core/Enums/DeviceType.cs
Normal 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
|
||||||
|
}
|
||||||
|
}
|
9
src/Core/Enums/FieldType.cs
Normal file
9
src/Core/Enums/FieldType.cs
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
namespace Bit.Core.Enums
|
||||||
|
{
|
||||||
|
public enum FieldType : byte
|
||||||
|
{
|
||||||
|
Text = 0,
|
||||||
|
Hidden = 1,
|
||||||
|
Boolean = 2
|
||||||
|
}
|
||||||
|
}
|
20
src/Core/Enums/PaymentMethodType.cs
Normal file
20
src/Core/Enums/PaymentMethodType.cs
Normal 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,
|
||||||
|
}
|
||||||
|
}
|
22
src/Core/Enums/PlanType.cs
Normal file
22
src/Core/Enums/PlanType.cs
Normal 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
|
||||||
|
}
|
||||||
|
}
|
7
src/Core/Enums/SecureNoteType.cs
Normal file
7
src/Core/Enums/SecureNoteType.cs
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
namespace Bit.Core.Enums
|
||||||
|
{
|
||||||
|
public enum SecureNoteType : byte
|
||||||
|
{
|
||||||
|
Generic = 0
|
||||||
|
}
|
||||||
|
}
|
18
src/Core/Enums/TransactionType.cs
Normal file
18
src/Core/Enums/TransactionType.cs
Normal 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,
|
||||||
|
}
|
||||||
|
}
|
13
src/Core/Enums/TwoFactorProviderType.cs
Normal file
13
src/Core/Enums/TwoFactorProviderType.cs
Normal 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
|
||||||
|
}
|
||||||
|
}
|
12
src/Core/Enums/UriMatchType.cs
Normal file
12
src/Core/Enums/UriMatchType.cs
Normal 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
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user