Ejemplo n.º 1
0
 private AppDetails(AccountType accountType, DateTime lastLogin, DateTime joinDate, IEnumerable <SubscriptionDetails> subscriptions, InstructorDetails instructorDetails)
 {
     AccountType       = accountType;
     LastLogin         = lastLogin;
     JoinDate          = joinDate;
     Subscriptions     = subscriptions;
     InstructorDetails = instructorDetails;
 }
Ejemplo n.º 2
0
 public bool ToInstructor(string publicName)
 {
     AccountType       = AccountType.INSTRUCTOR;
     InstructorDetails = InstructorDetails.Create(DateTime.UtcNow, publicName);
     return(AccountType.Equals(AccountType.INSTRUCTOR));
 }
Ejemplo n.º 3
0
 public static AppDetails Create(AccountType accountType, DateTime lastLogin, DateTime joinDate, IEnumerable <SubscriptionDetails> subscriptions, InstructorDetails instructorDetails)
 => new AppDetails(accountType, lastLogin, joinDate, subscriptions, instructorDetails);