Ejemplo n.º 1
0
 public static T For <T>(HttpClient httpClient, ResponseDeserializer responseDeserializer = null, RequestBodySerializer requestBodySerializer = null)
 {
     return(new RestClient(httpClient)
     {
         ResponseDeserializer = responseDeserializer, RequestBodySerializer = requestBodySerializer
     }.For <T>());
 }
Ejemplo n.º 2
0
 public static T For <T>(string baseUrl, RequestModifier requestModifier, ResponseDeserializer responseDeserializer = null, RequestBodySerializer requestBodySerializer = null)
 {
     return(new RestClient(baseUrl, requestModifier)
     {
         ResponseDeserializer = responseDeserializer, RequestBodySerializer = requestBodySerializer
     }.For <T>());
 }