Exemplo n.º 1
0
 public ApiClient(string apiKey, ContractResolver resolver)
 {
     _apiKey   = apiKey;
     _resolver = resolver;
     Serializer.ContractResolver = resolver;
     Serializer.Converters.Add(new StringEnumConverter {
         CamelCaseText = true
     });
     HttpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
 }
Exemplo n.º 2
0
 internal CustomFieldConfigurator(ContractResolver resolver)
 {
     _resolver = resolver;
 }