Example #1
0
 private static int GetStatusCode(IdentityResponseCode responseCode)
 {
     return(responseCode.Code switch
     {
         (int)IdentityResponseCodeRaw.Success => (int)HttpStatusCode.OK,
         (int)IdentityResponseCodeRaw.UnknownError => (int)HttpStatusCode.InternalServerError,
         _ => (int)HttpStatusCode.BadRequest,
     });
Example #2
0
 public LoginResponse(IdentityResponseCode responseCode)
 {
     ResponseCode = responseCode;
 }