using System; using System.Collections.Generic; using System.Text; using COSXML.Common; using COSXML.Model.Object; using COSXML.Model.Tag; using COSXML.CosException; using COSXML.Utils; namespace COSXML.Model.CI { /// /// 提交文档审核任务 /// /// public sealed class SubmitDocumentCensorJobRequest : CIRequest { public DocumentCensorJobInfo documentCensorJobInfo; public SubmitDocumentCensorJobRequest(string bucket) : base(bucket) { documentCensorJobInfo = new DocumentCensorJobInfo(); this.method = CosRequestMethod.POST; this.SetRequestPath("/document/auditing"); this.SetRequestHeader("Content-Type", "application/xml"); documentCensorJobInfo.input = new DocumentCensorJobInfo.Input(); documentCensorJobInfo.conf = new DocumentCensorJobInfo.Conf(); } public void SetUrl(string Url) { documentCensorJobInfo.input.url = Url; } public void SetType(string type) { documentCensorJobInfo.input.type = type; } public void SetDetectType(string detectType) { documentCensorJobInfo.conf.detectType = detectType; } public void SetCallback(string callbackUrl) { documentCensorJobInfo.conf.callback = callbackUrl; } public void SetBizType(string BizType) { documentCensorJobInfo.conf.bizType = BizType; } public override Network.RequestBody GetRequestBody() { return GetXmlRequestBody(documentCensorJobInfo); } } }