|
@@ -9,6 +9,9 @@ namespace KdanCommon.DocAI.Data
|
|
{
|
|
{
|
|
public partial class RedactInfoExtractResponse
|
|
public partial class RedactInfoExtractResponse
|
|
{
|
|
{
|
|
|
|
+ [JsonProperty("usage")]
|
|
|
|
+ public Usage Usage { get; set; }
|
|
|
|
+
|
|
[JsonProperty("pages")]
|
|
[JsonProperty("pages")]
|
|
public Page[] Pages { get; set; }
|
|
public Page[] Pages { get; set; }
|
|
|
|
|
|
@@ -16,6 +19,22 @@ namespace KdanCommon.DocAI.Data
|
|
public Info[] Infos { get; set; }
|
|
public Info[] Infos { get; set; }
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+ public partial class Usage
|
|
|
|
+ {
|
|
|
|
+ [JsonProperty("year")]
|
|
|
|
+ public int Year { get; set; }
|
|
|
|
+
|
|
|
|
+ [JsonProperty("month")]
|
|
|
|
+ public int Month { get; set; }
|
|
|
|
+
|
|
|
|
+ [JsonProperty("pages_used")]
|
|
|
|
+ public int PagesUsed { get; set; }
|
|
|
|
+
|
|
|
|
+ [JsonProperty("available_pages")]
|
|
|
|
+ public int AvailablePages { get; set; }
|
|
|
|
+ }
|
|
|
|
+
|
|
public partial class Info
|
|
public partial class Info
|
|
{
|
|
{
|
|
[JsonProperty("type")]
|
|
[JsonProperty("type")]
|
|
@@ -43,7 +62,7 @@ namespace KdanCommon.DocAI.Data
|
|
public partial class BoundingRegion
|
|
public partial class BoundingRegion
|
|
{
|
|
{
|
|
[JsonProperty("pageNumber")]
|
|
[JsonProperty("pageNumber")]
|
|
- public long PageNumber { get; set; }
|
|
|
|
|
|
+ public int PageNumber { get; set; }
|
|
|
|
|
|
[JsonProperty("boundingPolygon")]
|
|
[JsonProperty("boundingPolygon")]
|
|
public BoundingPolygon[] BoundingPolygon { get; set; }
|
|
public BoundingPolygon[] BoundingPolygon { get; set; }
|
|
@@ -64,10 +83,10 @@ namespace KdanCommon.DocAI.Data
|
|
public partial class Page
|
|
public partial class Page
|
|
{
|
|
{
|
|
[JsonProperty("pageNumber")]
|
|
[JsonProperty("pageNumber")]
|
|
- public long PageNumber { get; set; }
|
|
|
|
|
|
+ public int PageNumber { get; set; }
|
|
|
|
|
|
[JsonProperty("angle")]
|
|
[JsonProperty("angle")]
|
|
- public long Angle { get; set; }
|
|
|
|
|
|
+ public int Angle { get; set; }
|
|
|
|
|
|
[JsonProperty("width")]
|
|
[JsonProperty("width")]
|
|
public double Width { get; set; }
|
|
public double Width { get; set; }
|