コード例 #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"));
 }
コード例 #2
0
 internal CustomFieldConfigurator(ContractResolver resolver)
 {
     _resolver = resolver;
 }