/// <summary> /// Constructor for filling in all the information /// </summary> /// <param name="username"></param> /// <param name="password"></param> /// <param name="pgpPublicKey"></param> /// <param name="address"></param> /// <param name="email"></param> /// <param name="language"></param> /// <param name="timeZone"></param> /// <param name="autoLogout"></param> /// <param name="lastLogin"></param> /// <param name="country"> </param> /// <param name="state"> </param> /// <param name="phoneNumber"> </param> /// <param name="activationKey"> </param> public User(string username, string password, string pgpPublicKey, string address, string email, Language language, TimeZone timeZone, TimeSpan autoLogout, DateTime lastLogin, string country, string state, string phoneNumber, string activationKey) { Username = username; _password = password; _pgpPublicKey = pgpPublicKey; Address1 = address; _email = email; _language = language; _timeZone = timeZone; _autoLogout = autoLogout; _lastLogin = lastLogin; Country = country; PhoneNumber = phoneNumber; State = state; ActivationKey = activationKey; IsActivationKeyUsed = new IsActivationKeyUsed(false); IsUserBlocked = new IsUserBlocked(false); _forgottenPasswordCodesList = new List <PasswordCodeRecord>(); _tierLevelStatuses = new List <UserTierLevelStatus>(); _userDocumentsList = new UserDocumentsList(); _mfaSubscriptions = new List <MfaSubscriptionStatus>(); }
//default constructor public User() { _autoLogout = new TimeSpan(0, 0, 10, 0); IsActivationKeyUsed = new IsActivationKeyUsed(false); IsUserBlocked = new IsUserBlocked(false); _forgottenPasswordCodesList = new List <PasswordCodeRecord>(); _tierLevelStatuses = new List <UserTierLevelStatus>(); _mfaSubscriptions = new List <MfaSubscriptionStatus>(); }
/// <summary> /// Constructor for Sign Up /// </summary> /// <param name="email"></param> /// <param name="username"></param> /// <param name="password"></param> /// <param name="country"></param> /// <param name="timeZone"></param> /// <param name="pgpPublicKey"></param> /// <param name="activationKey"></param> public User(string email, string username, string password, string country, TimeZone timeZone, string pgpPublicKey, string activationKey) { _username = username; _password = password; _pgpPublicKey = pgpPublicKey; _country = country; _email = email; _timeZone = timeZone; _activationKey = activationKey; _autoLogout = new TimeSpan(0, 0, 10, 0); IsActivationKeyUsed = new IsActivationKeyUsed(false); IsUserBlocked = new IsUserBlocked(false); _tierLevelStatuses = new List <UserTierLevelStatus>(); _userDocumentsList = new UserDocumentsList(); _forgottenPasswordCodesList = new List <PasswordCodeRecord>(); _mfaSubscriptions = new List <MfaSubscriptionStatus>(); }