コード例 #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
ファイル: TermsAPI.cs プロジェクト: digitalcreations/poeditor
 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;
 }