1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- 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
- {
- /// <summary>
- /// 提交文档审核任务
- /// <see href="https://cloud.tencent.com/document/product/436/59381"/>
- /// </summary>
- 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);
- }
- }
- }
|