public ICrowdinResponse DeleteDirectory( string name, string branch = null, CrowdinResponseType type = CrowdinResponseType.Xml, string callback = null) { return(this.Grouped.Directory.Delete(name, branch, type, callback)); }
public ICrowdinResponse AddDirectory( string name, bool?isBranch = null, string branch = null, CrowdinResponseType type = CrowdinResponseType.Xml, string callback = null) { return(this.Grouped.Directory.Add(name, isBranch, branch, type, callback)); }
public ICrowdinResponse Delete( string name, string branch = null, CrowdinResponseType type = CrowdinResponseType.Xml, string callback = null) { var request = this.helper.CreateRequest(DeleteAddress, type, callback); return request.Body("name", name).BodyNotNull("branch", branch).Post(); }
public ICrowdinResponse AddDirectory( string name, bool? isBranch = null, string branch = null, CrowdinResponseType type = CrowdinResponseType.Xml, string callback = null) { return this.Grouped.Directory.Add(name, isBranch, branch, type, callback); }
public ICrowdinResponse Delete( string name, string branch = null, CrowdinResponseType type = CrowdinResponseType.Xml, string callback = null) { var request = this.helper.CreateRequest(DeleteAddress, type, callback); return(request.Body("name", name).BodyNotNull("branch", branch).Post()); }
public ICrowdinResponse ChangeDirectory( string name, string newName = null, string title = null, string exportPattern = null, string branch = null, CrowdinResponseType type = CrowdinResponseType.Xml, string callback = null) { return(this.Grouped.Directory.Change(name, newName, title, exportPattern, branch, type, callback)); }
public override ICrowdinRequest CreateRequest( string url, CrowdinResponseType type = CrowdinResponseType.Xml, string callback = null) { var req = base.CreateRequest(url, type, callback) .Placeholder(UserNamePlacaholder, this.userName) .Placeholder(AccountKeyPlacaholder, this.accountKey); return req; }
public override ICrowdinRequest CreateRequest( string url, CrowdinResponseType type = CrowdinResponseType.Xml, string callback = null) { var req = base.CreateRequest(url, type, callback) .Placeholder(ProjectIdentifierPlaceholder, this.projectIdentifier) .Placeholder(ProjectKeyPlaceholder, this.projectKey); return req; }
public override ICrowdinRequest CreateRequest( string url, CrowdinResponseType type = CrowdinResponseType.Xml, string callback = null) { var req = base.CreateRequest(url, type, callback) .Placeholder(ProjectIdentifierPlaceholder, this.projectIdentifier) .Placeholder(ProjectKeyPlaceholder, this.projectKey); return(req); }
public override ICrowdinRequest CreateRequest( string url, CrowdinResponseType type = CrowdinResponseType.Xml, string callback = null) { var req = base.CreateRequest(url, type, callback) .Placeholder(UserNamePlacaholder, this.userName) .Placeholder(AccountKeyPlacaholder, this.accountKey); return(req); }
public ICrowdinResponse CreateProject( string name, string identifier, string sourceLanguage, IEnumerable <string> languages, string joinPolicy, string languageAccessPolicy = null, bool?hideDuplicates = null, bool?exportTranslatedOnly = null, bool?exportApprovedOnly = null, bool?autoTranslateDialects = null, bool?publicDownloads = null, bool?useGlobalTm = null, string logo = null, string cname = null, string description = null, bool?inContext = null, string pseudoLanguage = null, string webhookFileTranslated = null, string webhookFileProofread = null, string webhookProjectTranslated = null, string webhookProjectProofread = null, CrowdinResponseType type = CrowdinResponseType.Xml, string callback = null) { var request = this.helper.CreateRequest(CreateProjectAddress, type, callback); return (request.Body("name", name) .Body("identifier", identifier) .Body("source_language", sourceLanguage) .Body("languages", languages) .Body("join_policy", joinPolicy) .BodyNotNull("language_access_policy", languageAccessPolicy) .BodyNotNull("hide_duplicates", hideDuplicates) .BodyNotNull("export_translated_only", exportTranslatedOnly) .BodyNotNull("export_approved_only", exportApprovedOnly) .BodyNotNull("auto_translate_dialects", autoTranslateDialects) .BodyNotNull("public_downloads", publicDownloads) .BodyNotNull("use_global_tm", useGlobalTm) .Files("logo", logo, logo != null) .BodyNotNull("cname", cname) .BodyNotNull("description", description) .BodyNotNull("in_context", inContext) .BodyNotNull("pseudo_language", pseudoLanguage) .BodyNotNull("webhook_file_translated", webhookFileTranslated) .BodyNotNull("webhook_file_proofread", webhookFileProofread) .BodyNotNull("webhook_project_translated", webhookProjectTranslated) .BodyNotNull("webhook_project_proofread", webhookProjectProofread) .Post()); }
public virtual ICrowdinRequest CreateRequest(string url, CrowdinResponseType type = CrowdinResponseType.Xml, string callback = null) { var req = new CrowdinRequest(url); if (type == CrowdinResponseType.Xml) { return(req); } var parameter = type == CrowdinResponseType.Json ? "json" : "jsonp"; var value = callback ?? "f"; return(req.Parameter(parameter, value)); }
public ICrowdinResponse CreateProject( string name, string identifier, string sourceLanguage, IEnumerable<string> languages, string joinPolicy, string languageAccessPolicy = null, bool? hideDuplicates = null, bool? exportTranslatedOnly = null, bool? exportApprovedOnly = null, bool? autoTranslateDialects = null, bool? publicDownloads = null, bool? useGlobalTm = null, string logo = null, string cname = null, string description = null, bool? inContext = null, string pseudoLanguage = null, string webhookFileTranslated = null, string webhookFileProofread = null, string webhookProjectTranslated = null, string webhookProjectProofread = null, CrowdinResponseType type = CrowdinResponseType.Xml, string callback = null) { var request = this.helper.CreateRequest(CreateProjectAddress, type, callback); return request.Body("name", name) .Body("identifier", identifier) .Body("source_language", sourceLanguage) .Body("languages", languages) .Body("join_policy", joinPolicy) .BodyNotNull("language_access_policy", languageAccessPolicy) .BodyNotNull("hide_duplicates", hideDuplicates) .BodyNotNull("export_translated_only", exportTranslatedOnly) .BodyNotNull("export_approved_only", exportApprovedOnly) .BodyNotNull("auto_translate_dialects", autoTranslateDialects) .BodyNotNull("public_downloads", publicDownloads) .BodyNotNull("use_global_tm", useGlobalTm) .Files("logo", logo, logo != null) .BodyNotNull("cname", cname) .BodyNotNull("description", description) .BodyNotNull("in_context", inContext) .BodyNotNull("pseudo_language", pseudoLanguage) .BodyNotNull("webhook_file_translated", webhookFileTranslated) .BodyNotNull("webhook_file_proofread", webhookFileProofread) .BodyNotNull("webhook_project_translated", webhookProjectTranslated) .BodyNotNull("webhook_project_proofread", webhookProjectProofread) .Post(); }
public virtual ICrowdinRequest CreateRequest(string url, CrowdinResponseType type = CrowdinResponseType.Xml, string callback = null) { var req = new CrowdinRequest(url); if (type == CrowdinResponseType.Xml) { return req; } var parameter = type == CrowdinResponseType.Json ? "json" : "jsonp"; var value = callback ?? "f"; return req.Parameter(parameter, value); }
public ICrowdinResponse Change( string name, string newName = null, string title = null, string exportPattern = null, string branch = null, CrowdinResponseType type = CrowdinResponseType.Xml, string callback = null) { var request = this.helper.CreateRequest(ChangeAddress, type, callback); return request.Body("name", name) .BodyNotNull("new_name", newName) .BodyNotNull("title", title) .BodyNotNull("export_pattern", exportPattern) .BodyNotNull("branch", branch) .Post(); }
public ICrowdinResponse Change( string name, string newName = null, string title = null, string exportPattern = null, string branch = null, CrowdinResponseType type = CrowdinResponseType.Xml, string callback = null) { var request = this.helper.CreateRequest(ChangeAddress, type, callback); return (request.Body("name", name) .BodyNotNull("new_name", newName) .BodyNotNull("title", title) .BodyNotNull("export_pattern", exportPattern) .BodyNotNull("branch", branch) .Post()); }
public ICrowdinResponse EditProject( string name = null, IEnumerable <string> languages = null, string joinPolicy = null, string languageAccessPolicy = null, bool?hideDuplicates = null, bool?exportTranslatedOnly = null, bool?exportApprovedOnly = null, bool?autoTranslateDialects = null, bool?publicDownloads = null, bool?useGlobalTm = null, string logo = null, string cname = null, string description = null, string webhookFileTranslated = null, string webhookFileProofread = null, string webhookProjectTranslated = null, string webhookProjectProofread = null, CrowdinResponseType type = CrowdinResponseType.Xml, string callback = null) { return(this.groupedClient.Project.Edit( name, languages, joinPolicy, languageAccessPolicy, hideDuplicates, exportTranslatedOnly, exportApprovedOnly, autoTranslateDialects, publicDownloads, useGlobalTm, logo, cname, description, webhookFileTranslated, webhookFileProofread, webhookProjectTranslated, webhookProjectProofread, type, callback)); }
public ICrowdinResponse EditProject( string name = null, IEnumerable<string> languages = null, string joinPolicy = null, string languageAccessPolicy = null, bool? hideDuplicates = null, bool? exportTranslatedOnly = null, bool? exportApprovedOnly = null, bool? autoTranslateDialects = null, bool? publicDownloads = null, bool? useGlobalTm = null, string logo = null, string cname = null, string description = null, string webhookFileTranslated = null, string webhookFileProofread = null, string webhookProjectTranslated = null, string webhookProjectProofread = null, CrowdinResponseType type = CrowdinResponseType.Xml, string callback = null) { return this.groupedClient.Project.Edit( name, languages, joinPolicy, languageAccessPolicy, hideDuplicates, exportTranslatedOnly, exportApprovedOnly, autoTranslateDialects, publicDownloads, useGlobalTm, logo, cname, description, webhookFileTranslated, webhookFileProofread, webhookProjectTranslated, webhookProjectProofread, type, callback); }
public ICrowdinResponse Details(CrowdinResponseType type = CrowdinResponseType.Xml, string callback = null) { var request = this.helper.CreateRequest(DetailsAddress, type, callback); return(request.Post()); }
public ICrowdinResponse ChangeDirectory( string name, string newName = null, string title = null, string exportPattern = null, string branch = null, CrowdinResponseType type = CrowdinResponseType.Xml, string callback = null) { return this.Grouped.Directory.Change(name, newName, title, exportPattern, branch, type, callback); }
public ICrowdinResponse Details(CrowdinResponseType type = CrowdinResponseType.Xml, string callback = null) { var request = this.helper.CreateRequest(DetailsAddress, type, callback); return request.Post(); }
public ICrowdinResponse ProjectDetails( CrowdinResponseType type = CrowdinResponseType.Xml, string callback = null) { return this.groupedClient.Project.Details(type, callback); }
public ICrowdinResponse DeleteDirectory( string name, string branch = null, CrowdinResponseType type = CrowdinResponseType.Xml, string callback = null) { return this.Grouped.Directory.Delete(name, branch, type, callback); }
public ICrowdinResponse ProjectDetails( CrowdinResponseType type = CrowdinResponseType.Xml, string callback = null) { return(this.groupedClient.Project.Details(type, callback)); }
public ICrowdinResponse SupportedLanguages(CrowdinResponseType type = CrowdinResponseType.Xml, string callback = null) { var request = this.helper.CreateRequest(SupportedLanguageAddress, type, callback); return(request.Get()); }
public ICrowdinResponse SupportedLanguages(CrowdinResponseType type = CrowdinResponseType.Xml, string callback = null) { var request = this.helper.CreateRequest(SupportedLanguageAddress, type, callback); return request.Get(); }