AuthenticatedLevel Authenticate(ushort pin, out string user) { AuthorizationLevel authorizationLevel = pinAuthProvider.AuthorizePin(pin, out user); AuthenticatedLevel authenticatedLevel = AuthenticatedLevel.None; switch (authorizationLevel) { case AuthorizationLevel.Level1: authenticatedLevel = AuthenticatedLevel.Level1; break; case AuthorizationLevel.Level2: authenticatedLevel = AuthenticatedLevel.Level2; break; } return(authenticatedLevel); }
public AuthenticatedEventArgs(AuthenticatedLevel level, string user) { Level = level; User = user; }