RedactInfoExtractResponse.cs 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. using Newtonsoft.Json;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace KdanCommon.DocAI.Data
  8. {
  9. public partial class RedactInfoExtractResponse
  10. {
  11. [JsonProperty("pages")]
  12. public Page[] Pages { get; set; }
  13. [JsonProperty("infos")]
  14. public Info[] Infos { get; set; }
  15. }
  16. public partial class Info
  17. {
  18. [JsonProperty("type")]
  19. public string Type { get; set; }
  20. [JsonProperty("blocks")]
  21. public Block[] Blocks { get; set; }
  22. }
  23. public partial class Block
  24. {
  25. [JsonProperty("content")]
  26. public string Content { get; set; }
  27. [JsonProperty("extractionContent")]
  28. public string ExtractionContent { get; set; }
  29. [JsonProperty("extractionType")]
  30. public string ExtractionType { get; set; }
  31. [JsonProperty("boundingRegions")]
  32. public BoundingRegion[] BoundingRegions { get; set; }
  33. }
  34. public partial class BoundingRegion
  35. {
  36. [JsonProperty("pageNumber")]
  37. public long PageNumber { get; set; }
  38. [JsonProperty("boundingPolygon")]
  39. public BoundingPolygon[] BoundingPolygon { get; set; }
  40. }
  41. public partial class BoundingPolygon
  42. {
  43. [JsonProperty("isEmpty")]
  44. public bool IsEmpty { get; set; }
  45. [JsonProperty("x")]
  46. public double X { get; set; }
  47. [JsonProperty("y")]
  48. public double Y { get; set; }
  49. }
  50. public partial class Page
  51. {
  52. [JsonProperty("pageNumber")]
  53. public long PageNumber { get; set; }
  54. [JsonProperty("angle")]
  55. public long Angle { get; set; }
  56. [JsonProperty("width")]
  57. public double Width { get; set; }
  58. [JsonProperty("height")]
  59. public double Height { get; set; }
  60. [JsonProperty("unit")]
  61. public long Unit { get; set; }
  62. }
  63. }