DocumentCensorResult.cs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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/59382"/>
  10. /// </summary>
  11. [XmlRoot("Response")]
  12. public sealed class DocumentCensorResult
  13. {
  14. [XmlElement]
  15. public Detail JobsDetail;
  16. public sealed class Detail
  17. {
  18. [XmlElement]
  19. public string Code;
  20. [XmlElement]
  21. public string Message;
  22. [XmlElement]
  23. public string JobId;
  24. [XmlElement]
  25. public string State;
  26. [XmlElement]
  27. public string Suggestion;
  28. [XmlElement]
  29. public string CreationTime;
  30. [XmlElement]
  31. public string Url;
  32. [XmlElement]
  33. public string PageCount;
  34. [XmlElement]
  35. public LabelsInfo Labels;
  36. [XmlElement]
  37. public PageSegmentInfo PageSegment;
  38. }
  39. public sealed class LabelsInfo
  40. {
  41. [XmlElement]
  42. public LabelsInfoDetail PornInfo;
  43. [XmlElement]
  44. public LabelsInfoDetail TerrorismInfo;
  45. [XmlElement]
  46. public LabelsInfoDetail PoliticsInfo;
  47. [XmlElement]
  48. public LabelsInfoDetail AdsInfo;
  49. }
  50. public sealed class LabelsInfoDetail
  51. {
  52. [XmlElement]
  53. public string HitFlag;
  54. [XmlElement]
  55. public string Score;
  56. }
  57. public sealed class PageSegmentInfo
  58. {
  59. [XmlElement]
  60. public ResultsInfo Results;
  61. }
  62. public sealed class ResultsInfo
  63. {
  64. [XmlElement]
  65. public string Url;
  66. [XmlElement]
  67. public string Text;
  68. [XmlElement]
  69. public string PageNumber;
  70. [XmlElement]
  71. public string SheetNumber;
  72. [XmlElement]
  73. public PageSegmentInfoDetail PornInfo;
  74. [XmlElement]
  75. public PageSegmentInfoDetail TerrorismInfo;
  76. [XmlElement]
  77. public PageSegmentInfoDetail PoliticsInfo;
  78. [XmlElement]
  79. public PageSegmentInfoDetail AdsInfo;
  80. }
  81. public sealed class PageSegmentInfoDetail
  82. {
  83. [XmlElement]
  84. public string HitFlag;
  85. [XmlElement]
  86. public string SubLabel;
  87. [XmlElement]
  88. public string Score;
  89. [XmlElement]
  90. public OcrResultsDetail OcrResults;
  91. [XmlElement]
  92. public ObjectResultsDetail ObjectResults;
  93. }
  94. public sealed class OcrResultsDetail
  95. {
  96. [XmlElement]
  97. public string Text;
  98. [XmlElement]
  99. public string Keywords;
  100. }
  101. public sealed class ObjectResultsDetail
  102. {
  103. [XmlElement]
  104. public string Name;
  105. }
  106. }
  107. }