1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- using System;
- using System.Collections.Generic;
- using System.Xml.Serialization;
- using System.Text;
- namespace COSXML.Model.Tag
- {
- /// <summary>
- /// 音频审核请求body
- /// <see href="https://cloud.tencent.com/document/product/436/54063"/>
- /// </summary>
- [XmlRoot("Request")]
- public sealed class AudioCencorJobInfo
- {
- [XmlElement("Input")]
- public Input input;
- [XmlElement("Conf")]
- public Conf conf;
- public string GetInfo()
- {
- StringBuilder stringBuilder = new StringBuilder("{Request:\n");
- stringBuilder.Append(input.GetInfo()).Append("\n");
- stringBuilder.Append(conf.GetInfo()).Append("\n");
- stringBuilder.Append("}");
- return stringBuilder.ToString();
- }
- public sealed class Input
- {
- [XmlElement("Object")]
- public string obj;
- [XmlElement("Url")]
- public string url;
- public string GetInfo()
- {
- StringBuilder stringBuilder = new StringBuilder("{Input:\n");
- if (obj != null)
- {
- stringBuilder.Append("Object:" + obj + "\n");
- }
- if (url != null)
- {
- stringBuilder.Append("Url:" + url + "\n");
- }
- stringBuilder.Append("}");
- return stringBuilder.ToString();
- }
- }
- public sealed class Conf
- {
- [XmlElement("DetectType")]
- public string detectType;
- [XmlElement("Callback")]
- public string callback;
- [XmlElement("CallbackVersion")]
- public string callbackVersion;
- [XmlElement("BizType")]
- public string bizType;
- public string GetInfo()
- {
- StringBuilder stringBuilder = new StringBuilder("{Conf:\n");
- stringBuilder.Append("DetectType:").Append(detectType).Append("\n");
- if (callback != null)
- {
- stringBuilder.Append("Callback:").Append(callback).Append("\n");
- }
- if (callbackVersion != null)
- {
- stringBuilder.Append("CallbackVersion:").Append(callbackVersion).Append("\n");
- }
- if (bizType != null)
- {
- stringBuilder.Append("BizType:").Append(bizType).Append("\n");
- }
- stringBuilder.Append("}");
- return stringBuilder.ToString();
- }
- }
- }
- }
|