| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | namespace Azure.AI.FormRecognizer.Models |
| | 5 | | { |
| | 6 | | /// <summary> |
| | 7 | | /// Represents a page interval from the input document. Page numbers are 1-based. |
| | 8 | | /// </summary> |
| | 9 | | public struct FormPageRange |
| | 10 | | { |
| | 11 | | /// <summary> |
| | 12 | | /// Initializes a new instance of the <see cref="FormPageRange"/> struct. |
| | 13 | | /// </summary> |
| | 14 | | /// <param name="first">The first page number of the range.</param> |
| | 15 | | /// <param name="last">The last page number of the range.</param> |
| | 16 | | internal FormPageRange(int first, int last) |
| | 17 | | { |
| 136 | 18 | | FirstPageNumber = first; |
| 136 | 19 | | LastPageNumber = last; |
| 136 | 20 | | } |
| | 21 | |
|
| | 22 | | /// <summary> |
| | 23 | | /// The first page number of the range. |
| | 24 | | /// </summary> |
| 280 | 25 | | public int FirstPageNumber { get; } |
| | 26 | |
|
| | 27 | | /// <summary> |
| | 28 | | /// The last page number of the range. |
| | 29 | | /// </summary> |
| 260 | 30 | | public int LastPageNumber { get; } |
| | 31 | | } |
| | 32 | | } |