| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System.Collections.Generic; |
| | 9 | | using Azure.Core; |
| | 10 | |
|
| | 11 | | namespace Azure.AI.FormRecognizer.Models |
| | 12 | | { |
| | 13 | | /// <summary> Extracted information from a single page. </summary> |
| | 14 | | internal partial class PageResult |
| | 15 | | { |
| | 16 | | /// <summary> Initializes a new instance of PageResult. </summary> |
| | 17 | | /// <param name="page"> Page number. </param> |
| 0 | 18 | | internal PageResult(int page) |
| | 19 | | { |
| 0 | 20 | | Page = page; |
| 0 | 21 | | KeyValuePairs = new ChangeTrackingList<KeyValuePair>(); |
| 0 | 22 | | Tables = new ChangeTrackingList<DataTable>(); |
| 0 | 23 | | } |
| | 24 | |
|
| | 25 | | /// <summary> Initializes a new instance of PageResult. </summary> |
| | 26 | | /// <param name="page"> Page number. </param> |
| | 27 | | /// <param name="clusterId"> Cluster identifier. </param> |
| | 28 | | /// <param name="keyValuePairs"> List of key-value pairs extracted from the page. </param> |
| | 29 | | /// <param name="tables"> List of data tables extracted from the page. </param> |
| 164 | 30 | | internal PageResult(int page, int? clusterId, IReadOnlyList<KeyValuePair> keyValuePairs, IReadOnlyList<DataTable |
| | 31 | | { |
| 164 | 32 | | Page = page; |
| 164 | 33 | | ClusterId = clusterId; |
| 164 | 34 | | KeyValuePairs = keyValuePairs; |
| 164 | 35 | | Tables = tables; |
| 164 | 36 | | } |
| | 37 | |
|
| | 38 | | /// <summary> Page number. </summary> |
| 132 | 39 | | public int Page { get; } |
| | 40 | | /// <summary> Cluster identifier. </summary> |
| 44 | 41 | | public int? ClusterId { get; } |
| | 42 | | /// <summary> List of key-value pairs extracted from the page. </summary> |
| 44 | 43 | | public IReadOnlyList<KeyValuePair> KeyValuePairs { get; } |
| | 44 | | /// <summary> List of data tables extracted from the page. </summary> |
| 328 | 45 | | public IReadOnlyList<DataTable> Tables { get; } |
| | 46 | | } |
| | 47 | | } |