Ejemplo n.º 1
0
        private CipherIdentityData ToCipherIdentityData()
        {
            return(new CipherIdentityData
            {
                Name = Name,
                Notes = Notes,
                Fields = Fields?.Select(f => f.ToCipherFieldData()),
                PasswordHistory = PasswordHistory?.Select(ph => ph.ToCipherPasswordHistoryData()),

                Title = Identity.Title,
                FirstName = Identity.FirstName,
                MiddleName = Identity.MiddleName,
                LastName = Identity.LastName,
                Address1 = Identity.Address1,
                Address2 = Identity.Address2,
                Address3 = Identity.Address3,
                City = Identity.City,
                State = Identity.State,
                PostalCode = Identity.PostalCode,
                Country = Identity.Country,
                Company = Identity.Company,
                Email = Identity.Email,
                Phone = Identity.Phone,
                SSN = Identity.SSN,
                Username = Identity.Username,
                PassportNumber = Identity.PassportNumber,
                LicenseNumber = Identity.LicenseNumber,
            });
        }
Ejemplo n.º 2
0
        private CipherSecureNoteData ToCipherSecureNoteData()
        {
            return(new CipherSecureNoteData
            {
                Name = Name,
                Notes = Notes,
                Fields = Fields?.Select(f => f.ToCipherFieldData()),
                PasswordHistory = PasswordHistory?.Select(ph => ph.ToCipherPasswordHistoryData()),

                Type = SecureNote.Type,
            });
        }
Ejemplo n.º 3
0
        private CipherCardData ToCipherCardData()
        {
            return(new CipherCardData
            {
                Name = Name,
                Notes = Notes,
                Fields = Fields?.Select(f => f.ToCipherFieldData()),
                PasswordHistory = PasswordHistory?.Select(ph => ph.ToCipherPasswordHistoryData()),

                CardholderName = Card.CardholderName,
                Brand = Card.Brand,
                Number = Card.Number,
                ExpMonth = Card.ExpMonth,
                ExpYear = Card.ExpYear,
                Code = Card.Code,
            });
        }
Ejemplo n.º 4
0
        private CipherLoginData ToCipherLoginData()
        {
            return(new CipherLoginData
            {
                Name = Name,
                Notes = Notes,
                Fields = Fields?.Select(f => f.ToCipherFieldData()),
                PasswordHistory = PasswordHistory?.Select(ph => ph.ToCipherPasswordHistoryData()),

                Uris =
                    Login.Uris?.Where(u => u != null)
                    .Select(u => u.ToCipherLoginUriData()),
                Username = Login.Username,
                Password = Login.Password,
                PasswordRevisionDate = Login.PasswordRevisionDate,
                Totp = Login.Totp,
                AutofillOnPageLoad = Login.AutofillOnPageLoad,
            });
        }