Beispiel #1
0
 /// <summary>
 /// If user is not null, set user values in the CryptoEntry object
 /// </summary>
 /// <param name="user"></param>
 public CryptoEntry(BaseUser user)
 {
     if (user != null)
     {
         CryptoAlias      = user.CryptoAlias ?? "";
         CryptoCodeOption = CryptoCode.ETH;
         CryptoAddress    = user.CryptoAddress;
     }
 }
Beispiel #2
0
 /// <summary>
 /// If user is not null, set user values in the Contact object
 /// </summary>
 /// <param name="user"></param>
 public Contact(BaseUser user)
 {
     if (user != null)
     {
         ContactAlias = user.ContactAlias ?? "";
         Email        = user.Email;
         Phone        = user.Phone;
         SmsOptIn     = user.SmsOptIn;
     }
 }
Beispiel #3
0
 /// <summary>
 /// If user is not null, set user values in the Address object
 /// </summary>
 /// <param name="user"></param>
 public Address(BaseUser user)
 {
     if (user != null)
     {
         AddressAlias   = user.AddressAlias ?? "";
         StreetAddress1 = user.StreetAddress1;
         StreetAddress2 = user.StreetAddress2;
         City           = user.City;
         State          = user.State;
         Country        = user.Country ?? Countries.US.ToString();
         PostalCode     = user.PostalCode;
     }
 }