public static UserModel FromUser(User u) { return new UserModel() { Id = u.Id, DisplayName = u.DisplayName, Email = u.Email }; }
public static AuthenticationResult Registered(User user) { return new AuthenticationResult(AuthenticationOutcome.Registered, user, new List<string>()); }
public static AuthenticationResult Associated(User user) { return new AuthenticationResult(AuthenticationOutcome.Associated, user, new List<string>()); }
public static AuthenticationResult LoggedIn(User user) { return new AuthenticationResult(AuthenticationOutcome.LoggedIn, user, new List<string>()); }
public AuthenticationResult(AuthenticationOutcome outcome, User user, IList<string> missingFields) { Outcome = outcome; User = user; MissingFields = missingFields; }