예제 #1
0
파일: UserModel.cs 프로젝트: anurse/ReviewR
 public static UserModel FromUser(User u)
 {
     return new UserModel()
     {
         Id = u.Id,
         DisplayName = u.DisplayName,
         Email = u.Email
     };
 }
예제 #2
0
 public static AuthenticationResult Registered(User user)
 {
     return new AuthenticationResult(AuthenticationOutcome.Registered, user, new List<string>());
 }
예제 #3
0
 public static AuthenticationResult Associated(User user)
 {
     return new AuthenticationResult(AuthenticationOutcome.Associated, user, new List<string>());
 }
예제 #4
0
 public static AuthenticationResult LoggedIn(User user)
 {
     return new AuthenticationResult(AuthenticationOutcome.LoggedIn, user, new List<string>());
 }
예제 #5
0
 public AuthenticationResult(AuthenticationOutcome outcome, User user, IList<string> missingFields)
 {
     Outcome = outcome;
     User = user;
     MissingFields = missingFields;
 }