| | 1 | | // <auto-generated> |
| | 2 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 3 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 4 | | // regenerated. |
| | 5 | | // </auto-generated> |
| | 6 | |
|
| | 7 | | namespace Microsoft.Azure.CognitiveServices.ContentModerator.Models |
| | 8 | | { |
| | 9 | | using Newtonsoft.Json; |
| | 10 | | using System.Collections; |
| | 11 | | using System.Collections.Generic; |
| | 12 | | using System.Linq; |
| | 13 | |
|
| | 14 | | /// <summary> |
| | 15 | | /// Contains the text found in image for the language specified. |
| | 16 | | /// </summary> |
| | 17 | | public partial class OCR |
| | 18 | | { |
| | 19 | | /// <summary> |
| | 20 | | /// Initializes a new instance of the OCR class. |
| | 21 | | /// </summary> |
| 0 | 22 | | public OCR() |
| | 23 | | { |
| | 24 | | CustomInit(); |
| 0 | 25 | | } |
| | 26 | |
|
| | 27 | | /// <summary> |
| | 28 | | /// Initializes a new instance of the OCR class. |
| | 29 | | /// </summary> |
| | 30 | | /// <param name="status">The evaluate status</param> |
| | 31 | | /// <param name="metadata">Array of KeyValue.</param> |
| | 32 | | /// <param name="trackingId">The tracking id.</param> |
| | 33 | | /// <param name="cacheId">The cache id.</param> |
| | 34 | | /// <param name="language">The ISO 639-3 code.</param> |
| | 35 | | /// <param name="text">The found text.</param> |
| | 36 | | /// <param name="candidates">The list of candidate text.</param> |
| 0 | 37 | | public OCR(Status status = default(Status), IList<KeyValuePair> metadata = default(IList<KeyValuePair>), string |
| | 38 | | { |
| 0 | 39 | | Status = status; |
| 0 | 40 | | Metadata = metadata; |
| 0 | 41 | | TrackingId = trackingId; |
| 0 | 42 | | CacheId = cacheId; |
| 0 | 43 | | Language = language; |
| 0 | 44 | | Text = text; |
| 0 | 45 | | Candidates = candidates; |
| | 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 the evaluate status |
| | 56 | | /// </summary> |
| | 57 | | [JsonProperty(PropertyName = "Status")] |
| 0 | 58 | | public Status Status { get; set; } |
| | 59 | |
|
| | 60 | | /// <summary> |
| | 61 | | /// Gets or sets array of KeyValue. |
| | 62 | | /// </summary> |
| | 63 | | [JsonProperty(PropertyName = "Metadata")] |
| 0 | 64 | | public IList<KeyValuePair> Metadata { get; set; } |
| | 65 | |
|
| | 66 | | /// <summary> |
| | 67 | | /// Gets or sets the tracking id. |
| | 68 | | /// </summary> |
| | 69 | | [JsonProperty(PropertyName = "TrackingId")] |
| 0 | 70 | | public string TrackingId { get; set; } |
| | 71 | |
|
| | 72 | | /// <summary> |
| | 73 | | /// Gets or sets the cache id. |
| | 74 | | /// </summary> |
| | 75 | | [JsonProperty(PropertyName = "CacheId")] |
| 0 | 76 | | public string CacheId { get; set; } |
| | 77 | |
|
| | 78 | | /// <summary> |
| | 79 | | /// Gets or sets the ISO 639-3 code. |
| | 80 | | /// </summary> |
| | 81 | | [JsonProperty(PropertyName = "Language")] |
| 0 | 82 | | public string Language { get; set; } |
| | 83 | |
|
| | 84 | | /// <summary> |
| | 85 | | /// Gets or sets the found text. |
| | 86 | | /// </summary> |
| | 87 | | [JsonProperty(PropertyName = "Text")] |
| 0 | 88 | | public string Text { get; set; } |
| | 89 | |
|
| | 90 | | /// <summary> |
| | 91 | | /// Gets or sets the list of candidate text. |
| | 92 | | /// </summary> |
| | 93 | | [JsonProperty(PropertyName = "Candidates")] |
| 0 | 94 | | public IList<Candidate> Candidates { get; set; } |
| | 95 | |
|
| | 96 | | } |
| | 97 | | } |