| | 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; |
| | 9 | | using System.Collections.Generic; |
| | 10 | | using System.Linq; |
| | 11 | |
|
| | 12 | | namespace Azure.AI.FormRecognizer.Models |
| | 13 | | { |
| | 14 | | /// <summary> Information about the extracted table contained in a page. </summary> |
| | 15 | | internal partial class DataTable |
| | 16 | | { |
| | 17 | | /// <summary> Initializes a new instance of DataTable. </summary> |
| | 18 | | /// <param name="rows"> Number of rows. </param> |
| | 19 | | /// <param name="columns"> Number of columns. </param> |
| | 20 | | /// <param name="cells"> List of cells contained in the table. </param> |
| | 21 | | /// <exception cref="ArgumentNullException"> <paramref name="cells"/> is null. </exception> |
| 0 | 22 | | internal DataTable(int rows, int columns, IEnumerable<DataTableCell> cells) |
| | 23 | | { |
| 0 | 24 | | if (cells == null) |
| | 25 | | { |
| 0 | 26 | | throw new ArgumentNullException(nameof(cells)); |
| | 27 | | } |
| | 28 | |
|
| 0 | 29 | | Rows = rows; |
| 0 | 30 | | Columns = columns; |
| 0 | 31 | | Cells = cells.ToList(); |
| 0 | 32 | | } |
| | 33 | |
|
| | 34 | | /// <summary> Initializes a new instance of DataTable. </summary> |
| | 35 | | /// <param name="rows"> Number of rows. </param> |
| | 36 | | /// <param name="columns"> Number of columns. </param> |
| | 37 | | /// <param name="cells"> List of cells contained in the table. </param> |
| 128 | 38 | | internal DataTable(int rows, int columns, IReadOnlyList<DataTableCell> cells) |
| | 39 | | { |
| 128 | 40 | | Rows = rows; |
| 128 | 41 | | Columns = columns; |
| 128 | 42 | | Cells = cells; |
| 128 | 43 | | } |
| | 44 | |
|
| | 45 | | /// <summary> Number of rows. </summary> |
| 128 | 46 | | public int Rows { get; } |
| | 47 | | /// <summary> Number of columns. </summary> |
| 128 | 48 | | public int Columns { get; } |
| | 49 | | /// <summary> List of cells contained in the table. </summary> |
| 128 | 50 | | public IReadOnlyList<DataTableCell> Cells { get; } |
| | 51 | | } |
| | 52 | | } |