/// <summary>
        /// Tis is the method to do post OS Authentication activities
        /// </summary>
        /// <param name="status">Status.</param>
        public async Task OSAuthenticationResult(AuthenticationStatusEnum status)
        {
            switch (status)
            {
            case AuthenticationStatusEnum.Success:
                await OnSuccess();

                break;

            case AuthenticationStatusEnum.Error:
                await OnFailure("Error - Please try again");

                break;

            case AuthenticationStatusEnum.NotFound:
                await OnKeyNotFound("Passcode/TouchID not set.");

                break;
            }
        }
		/// <summary>
		/// Tis is the method to do post OS Authentication activities
		/// </summary>
		/// <param name="status">Status.</param>
		public async Task OSAuthenticationResult (AuthenticationStatusEnum status)
		{
			switch (status) {
			case AuthenticationStatusEnum.Success:
				await OnSuccess ();
				break;
			case AuthenticationStatusEnum.Error:
				await OnFailure ("Error - Please try again");
				break;
			case AuthenticationStatusEnum.NotFound:
				await OnKeyNotFound ("Passcode/TouchID not set.");
				break;
			}
		}
Beispiel #3
0
 public UserSession(AuthenticationStatusEnum status, string userId)
 {
     UserId = userId;
     Status = status;
 }