Beispiel #1
0
 public RegistrationProfile(AbstractLogger logger, string displayName, string proposedDisplayName, string proposedStatus, string firstName, string accountStatus, DateTime lastRefreshTime, string countryCode)
 {
     this.logger               = logger;
     DisplayName               = displayName;
     ProposedDisplayName       = proposedDisplayName;
     DisplayNameProposedStatus = GetProposedDisplayNameStatus(proposedStatus);
     FirstName       = firstName;
     AccountStatus   = AccountStatusFactory.Create(accountStatus);
     LastRefreshTime = lastRefreshTime;
     CountryCode     = countryCode;
 }
Beispiel #2
0
 private void UpdateProfile(Profile profile)
 {
     if (profile != null)
     {
         DateOfBirth         = GuestControllerUtils.ParseDateTime(logger, profile.dateOfBirth);
         AgeBandKey          = profile.ageBand;
         AgeBandAssumed      = profile.ageBandAssumed;
         Email               = profile.email;
         EmailVerified       = profile.emailVerified;
         FirstName           = profile.firstName;
         LastName            = profile.lastName;
         MiddleName          = profile.middleName;
         ParentEmail         = profile.parentEmail;
         ParentEmailVerified = profile.parentEmailVerified;
         Username            = profile.username;
         LanguagePreference  = profile.languagePreference;
         CountryCode         = GuestControllerUtils.GetCountryCode(profile);
         AccountStatus       = AccountStatusFactory.Create(profile.status);
         IsAdultVerified     = profile.isAdultVerified;
     }
 }