| | 1 | | // <auto-generated> |
| | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | 4 | | // license information. |
| | 5 | | // |
| | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 8 | | // regenerated. |
| | 9 | | // </auto-generated> |
| | 10 | |
|
| | 11 | | namespace Microsoft.Azure.CognitiveServices.FormRecognizer.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Collections; |
| | 15 | | using System.Collections.Generic; |
| | 16 | | using System.Linq; |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// Analyze API call result. |
| | 20 | | /// </summary> |
| | 21 | | public partial class AnalyzeResult |
| | 22 | | { |
| | 23 | | /// <summary> |
| | 24 | | /// Initializes a new instance of the AnalyzeResult class. |
| | 25 | | /// </summary> |
| 0 | 26 | | public AnalyzeResult() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 0 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the AnalyzeResult class. |
| | 33 | | /// </summary> |
| | 34 | | /// <param name="status">Status of the analyze operation. Possible |
| | 35 | | /// values include: 'success', 'partialSuccess', 'failure'</param> |
| | 36 | | /// <param name="pages">Page level information extracted in the |
| | 37 | | /// analyzed |
| | 38 | | /// document.</param> |
| | 39 | | /// <param name="errors">List of errors reported during the analyze |
| | 40 | | /// operation.</param> |
| 0 | 41 | | public AnalyzeResult(string status = default(string), IList<ExtractedPage> pages = default(IList<ExtractedPage>) |
| | 42 | | { |
| 0 | 43 | | Status = status; |
| 0 | 44 | | Pages = pages; |
| 0 | 45 | | Errors = errors; |
| | 46 | | CustomInit(); |
| 0 | 47 | | } |
| | 48 | |
|
| | 49 | | /// <summary> |
| | 50 | | /// An initialization method that performs custom operations like setting defaults |
| | 51 | | /// </summary> |
| | 52 | | partial void CustomInit(); |
| | 53 | |
|
| | 54 | | /// <summary> |
| | 55 | | /// Gets or sets status of the analyze operation. Possible values |
| | 56 | | /// include: 'success', 'partialSuccess', 'failure' |
| | 57 | | /// </summary> |
| | 58 | | [JsonProperty(PropertyName = "status")] |
| 0 | 59 | | public string Status { get; set; } |
| | 60 | |
|
| | 61 | | /// <summary> |
| | 62 | | /// Gets or sets page level information extracted in the analyzed |
| | 63 | | /// document. |
| | 64 | | /// </summary> |
| | 65 | | [JsonProperty(PropertyName = "pages")] |
| 0 | 66 | | public IList<ExtractedPage> Pages { get; set; } |
| | 67 | |
|
| | 68 | | /// <summary> |
| | 69 | | /// Gets or sets list of errors reported during the analyze |
| | 70 | | /// operation. |
| | 71 | | /// </summary> |
| | 72 | | [JsonProperty(PropertyName = "errors")] |
| 0 | 73 | | public IList<FormOperationError> Errors { get; set; } |
| | 74 | |
|
| | 75 | | } |
| | 76 | | } |