Ejemplo n.º 1
0
 // Copy constructor
 public Account(Account a)
 {
     Provider    = a.Provider;
     Username    = a.Username;
     Credentials = new UserPass(a.Credentials.Username, a.Credentials.Password);
     Email       = a.Email;
     Expiration  = a.Expiration;
 }
Ejemplo n.º 2
0
 /// <param name="prov">The API provider</param>
 /// <param name="username">The username of the account</param>
 /// <param name="credentials">The account credentials</param>
 /// <param name="email">The account email address</param>
 public Account(string prov, string username, UserPass credentials, string email = "")
 {
     Provider    = prov;
     Username    = username;
     Credentials = credentials;
     Email       = email;
     Expiration  = DateTime.Now;
 }