Пример #1
0
        public POEditorAPI(string apiToken, HttpClient httpClient)
        {
            this._serializerSettings = new JsonSerializerSettings()
            {
                ContractResolver = new DefaultContractResolver()
                {
                    NamingStrategy = new SnakeCaseNamingStrategy()
                },
                NullValueHandling = NullValueHandling.Ignore
            };

            this._apiCaller = new ApiCaller(apiToken, httpClient, this._serializerSettings);
            this.Projects   = new ProjectAPI(this._apiCaller);
            this.Terms      = new TermsAPI(this._apiCaller);
            this.Languages  = new LanguageAPI(this._apiCaller);
        }
Пример #2
0
 internal TermsAPI(ApiCaller apiCaller)
 {
     this._apiCaller = apiCaller;
 }
Пример #3
0
 internal ProjectAPI(ApiCaller apiCaller)
 {
     this._apiCaller = apiCaller;
 }
Пример #4
0
 internal LanguageAPI(ApiCaller apiCaller)
 {
     this._apiCaller = apiCaller;
 }