TextCensorResult.cs 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Xml.Serialization;
  4. using System.Text;
  5. namespace COSXML.Model.Tag
  6. {
  7. /// <summary>
  8. /// 文本审核结果
  9. /// <see href="https://cloud.tencent.com/document/product/436/56288"/>
  10. /// </summary>
  11. [XmlRoot("Response")]
  12. public sealed class TextCensorResult
  13. {
  14. [XmlElement]
  15. public Detail JobsDetail;
  16. [XmlElement]
  17. public string NonExistJobIds;
  18. public sealed class Detail
  19. {
  20. [XmlElement]
  21. public string Code;
  22. [XmlElement]
  23. public string Message;
  24. [XmlElement]
  25. public string JobId;
  26. [XmlElement]
  27. public string State;
  28. [XmlElement]
  29. public string CreationTime;
  30. [XmlElement]
  31. public string Object;
  32. [XmlElement]
  33. public string SectionCount;
  34. [XmlElement]
  35. public string Result;
  36. [XmlElement]
  37. public Info PornInfo;
  38. [XmlElement]
  39. public Info TerrorismInfo;
  40. [XmlElement]
  41. public Info PoliticsInfo;
  42. [XmlElement]
  43. public Info AdsInfo;
  44. [XmlElement]
  45. public Info IllegalInfo;
  46. [XmlElement]
  47. public Info AbuseInfo;
  48. [XmlElement]
  49. public List<SectionInfo> Section;
  50. }
  51. public sealed class Info
  52. {
  53. [XmlElement]
  54. public string HitFlag;
  55. [XmlElement]
  56. public string Count;
  57. }
  58. public sealed class SectionInfo
  59. {
  60. [XmlElement]
  61. public string StartByte;
  62. [XmlElement]
  63. public SectionInfoDetail PornInfo;
  64. [XmlElement]
  65. public SectionInfoDetail TerrorismInfo;
  66. [XmlElement]
  67. public SectionInfoDetail PoliticsInfo;
  68. [XmlElement]
  69. public SectionInfoDetail AdsInfo;
  70. [XmlElement]
  71. public SectionInfoDetail IllegalInfo;
  72. [XmlElement]
  73. public SectionInfoDetail AbuseInfo;
  74. }
  75. public sealed class SectionInfoDetail
  76. {
  77. [XmlElement]
  78. public string Code;
  79. [XmlElement]
  80. public string HitFlag;
  81. [XmlElement]
  82. public string Score;
  83. [XmlElement]
  84. public string Keywords;
  85. }
  86. }
  87. }