RedactInfoExtractResponse.cs 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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("usage")]
  12. public Usage Usage { get; set; }
  13. [JsonProperty("pages")]
  14. public Page[] Pages { get; set; }
  15. [JsonProperty("infos")]
  16. public Info[] Infos { get; set; }
  17. }
  18. public partial class Usage
  19. {
  20. [JsonProperty("year")]
  21. public int Year { get; set; }
  22. [JsonProperty("month")]
  23. public int Month { get; set; }
  24. [JsonProperty("pages_used")]
  25. public int PagesUsed { get; set; }
  26. [JsonProperty("available_pages")]
  27. public int AvailablePages { get; set; }
  28. }
  29. public partial class Info
  30. {
  31. [JsonProperty("type")]
  32. public string Type { get; set; }
  33. [JsonProperty("blocks")]
  34. public Block[] Blocks { get; set; }
  35. }
  36. public partial class Block
  37. {
  38. [JsonProperty("content")]
  39. public string Content { get; set; }
  40. [JsonProperty("extractionContent")]
  41. public string ExtractionContent { get; set; }
  42. [JsonProperty("extractionType")]
  43. public string ExtractionType { get; set; }
  44. [JsonProperty("boundingRegions")]
  45. public BoundingRegion[] BoundingRegions { get; set; }
  46. }
  47. public partial class BoundingRegion
  48. {
  49. [JsonProperty("pageNumber")]
  50. public int PageNumber { get; set; }
  51. [JsonProperty("boundingPolygon")]
  52. public BoundingPolygon[] BoundingPolygon { get; set; }
  53. }
  54. public partial class BoundingPolygon
  55. {
  56. [JsonProperty("isEmpty")]
  57. public bool IsEmpty { get; set; }
  58. [JsonProperty("x")]
  59. public double X { get; set; }
  60. [JsonProperty("y")]
  61. public double Y { get; set; }
  62. }
  63. public partial class Page
  64. {
  65. [JsonProperty("pageNumber")]
  66. public int PageNumber { get; set; }
  67. [JsonProperty("angle")]
  68. public int Angle { get; set; }
  69. [JsonProperty("width")]
  70. public double Width { get; set; }
  71. [JsonProperty("height")]
  72. public double Height { get; set; }
  73. [JsonProperty("unit")]
  74. public long Unit { get; set; }
  75. }
  76. }