Beispiel #1
0
        public IdentityDataModel(CipherRequestModel cipher)
        {
            Name   = cipher.Name;
            Notes  = cipher.Notes;
            Fields = cipher.Fields;

            Title          = cipher.Identity.Title;
            FirstName      = cipher.Identity.FirstName;
            MiddleName     = cipher.Identity.MiddleName;
            LastName       = cipher.Identity.LastName;
            Address1       = cipher.Identity.Address1;
            Address2       = cipher.Identity.Address2;
            Address3       = cipher.Identity.Address3;
            City           = cipher.Identity.City;
            State          = cipher.Identity.State;
            PostalCode     = cipher.Identity.PostalCode;
            Country        = cipher.Identity.Country;
            Company        = cipher.Identity.Company;
            Email          = cipher.Identity.Email;
            Phone          = cipher.Identity.Phone;
            SSN            = cipher.Identity.SSN;
            Username       = cipher.Identity.Username;
            PassportNumber = cipher.Identity.PassportNumber;
            LicenseNumber  = cipher.Identity.LicenseNumber;
        }
Beispiel #2
0
 public LoginDataModel(CipherRequestModel cipher)
 {
     Name     = cipher.Name;
     Uri      = cipher.Uri;
     Username = cipher.Username;
     Password = cipher.Password;
     Notes    = cipher.Notes;
 }
Beispiel #3
0
        public SecureNoteDataModel(CipherRequestModel cipher)
        {
            Name   = cipher.Name;
            Notes  = cipher.Notes;
            Fields = cipher.Fields;

            Type = cipher.SecureNote.Type;
        }
Beispiel #4
0
        public LoginDataModel(CipherRequestModel cipher)
        {
            Name   = cipher.Name;
            Notes  = cipher.Notes;
            Fields = cipher.Fields;

            Uri      = cipher.Login.Uri;
            Username = cipher.Login.Username;
            Password = cipher.Login.Password;
            Totp     = cipher.Login.Totp;
        }
Beispiel #5
0
        public CardDataModel(CipherRequestModel cipher)
        {
            Name   = cipher.Name;
            Notes  = cipher.Notes;
            Fields = cipher.Fields;

            CardholderName = cipher.Card.CardholderName;
            Brand          = cipher.Card.Brand;
            Number         = cipher.Card.Number;
            ExpMonth       = cipher.Card.ExpMonth;
            ExpYear        = cipher.Card.ExpYear;
            Code           = cipher.Card.Code;
        }