示例#1
0
 private bool TryGetResponseStatusFromResponseBody(out string responseStatus)
 {
     responseStatus = string.Empty;
     try
     {
         if (string.IsNullOrEmpty(ResponseBody))
         {
             return(false);
         }
         var map = ResponseBody.FromJson <ErrorResponse>();
         responseStatus = map.ResponseStatus.ToJson();
         return(true);
     }
     catch
     {
         return(false);
     }
 }