public T Deserialize <T>(IRestResponse response) { var r = new RestSharpResponse <T> { Content = response.Content, StatusCode = response.StatusCode }; return(_inner.Deserialize(r)); }
private static IRestResponse MapResponse(global::RestSharp.IRestResponse response) { TrelloConfiguration.Log.Debug($"Status Code: {response.StatusCode} ({(int)response.StatusCode})\n" + $"Content: {response.Content}"); var restResponse = new RestSharpResponse { Content = response.Content, StatusCode = response.StatusCode }; return(restResponse); }
private Rest.IRestResponse <T> MapResponse <T>(global::RestSharp.IRestResponse response) where T : class { TrelloConfiguration.Log.Debug($"Status Code: {response.StatusCode} ({(int) response.StatusCode})\n" + $"Content: {response.Content}"); var restResponse = new RestSharpResponse <T> { Content = response.Content, StatusCode = response.StatusCode }; try { restResponse.Data = _deserializer.Deserialize <T>(response); } catch (Exception e) { restResponse.Exception = e; } return(restResponse); }
public T Deserialize<T>(IRestResponse response) { var r = new RestSharpResponse<T>(response, default(T)); return _inner.Deserialize(r); }