| | 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 Azure.Core; |
| | 11 | |
|
| | 12 | | namespace Azure.AI.FormRecognizer.Models |
| | 13 | | { |
| | 14 | | /// <summary> Analyze operation result. </summary> |
| | 15 | | internal partial class AnalyzeResult |
| | 16 | | { |
| | 17 | | /// <summary> Initializes a new instance of AnalyzeResult. </summary> |
| | 18 | | /// <param name="version"> Version of schema used for this result. </param> |
| | 19 | | /// <exception cref="ArgumentNullException"> <paramref name="version"/> is null. </exception> |
| 0 | 20 | | internal AnalyzeResult(string version) |
| | 21 | | { |
| 0 | 22 | | if (version == null) |
| | 23 | | { |
| 0 | 24 | | throw new ArgumentNullException(nameof(version)); |
| | 25 | | } |
| | 26 | |
|
| 0 | 27 | | Version = version; |
| 0 | 28 | | ReadResults = new ChangeTrackingList<ReadResult>(); |
| 0 | 29 | | PageResults = new ChangeTrackingList<PageResult>(); |
| 0 | 30 | | DocumentResults = new ChangeTrackingList<DocumentResult>(); |
| 0 | 31 | | Errors = new ChangeTrackingList<FormRecognizerError>(); |
| 0 | 32 | | } |
| | 33 | |
|
| | 34 | | /// <summary> Initializes a new instance of AnalyzeResult. </summary> |
| | 35 | | /// <param name="version"> Version of schema used for this result. </param> |
| | 36 | | /// <param name="readResults"> Text extracted from the input. </param> |
| | 37 | | /// <param name="pageResults"> Page-level information extracted from the input. </param> |
| | 38 | | /// <param name="documentResults"> Document-level information extracted from the input. </param> |
| | 39 | | /// <param name="errors"> List of errors reported during the analyze operation. </param> |
| 160 | 40 | | internal AnalyzeResult(string version, IReadOnlyList<ReadResult> readResults, IReadOnlyList<PageResult> pageResu |
| | 41 | | { |
| 160 | 42 | | Version = version; |
| 160 | 43 | | ReadResults = readResults; |
| 160 | 44 | | PageResults = pageResults; |
| 160 | 45 | | DocumentResults = documentResults; |
| 160 | 46 | | Errors = errors; |
| 160 | 47 | | } |
| | 48 | |
|
| | 49 | | /// <summary> Version of schema used for this result. </summary> |
| 0 | 50 | | public string Version { get; } |
| | 51 | | /// <summary> Text extracted from the input. </summary> |
| 176 | 52 | | public IReadOnlyList<ReadResult> ReadResults { get; } |
| | 53 | | /// <summary> Page-level information extracted from the input. </summary> |
| 252 | 54 | | public IReadOnlyList<PageResult> PageResults { get; } |
| | 55 | | /// <summary> Document-level information extracted from the input. </summary> |
| 252 | 56 | | public IReadOnlyList<DocumentResult> DocumentResults { get; } |
| | 57 | | /// <summary> List of errors reported during the analyze operation. </summary> |
| 12 | 58 | | public IReadOnlyList<FormRecognizerError> Errors { get; } |
| | 59 | | } |
| | 60 | | } |