| | 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.Vision.ComputerVision.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Linq; |
| | 15 | |
|
| | 16 | | /// <summary> |
| | 17 | | /// Result of AreaOfInterest operation. |
| | 18 | | /// </summary> |
| | 19 | | public partial class AreaOfInterestResult |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the AreaOfInterestResult class. |
| | 23 | | /// </summary> |
| 6 | 24 | | public AreaOfInterestResult() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 6 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the AreaOfInterestResult class. |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="areaOfInterest">A bounding box for an area of interest |
| | 33 | | /// inside an image.</param> |
| | 34 | | /// <param name="requestId">Id of the REST API request.</param> |
| 0 | 35 | | public AreaOfInterestResult(BoundingRect areaOfInterest = default(BoundingRect), string requestId = default(stri |
| | 36 | | { |
| 0 | 37 | | AreaOfInterest = areaOfInterest; |
| 0 | 38 | | RequestId = requestId; |
| 0 | 39 | | Metadata = metadata; |
| | 40 | | CustomInit(); |
| 0 | 41 | | } |
| | 42 | |
|
| | 43 | | /// <summary> |
| | 44 | | /// An initialization method that performs custom operations like setting defaults |
| | 45 | | /// </summary> |
| | 46 | | partial void CustomInit(); |
| | 47 | |
|
| | 48 | | /// <summary> |
| | 49 | | /// Gets a bounding box for an area of interest inside an image. |
| | 50 | | /// </summary> |
| | 51 | | [JsonProperty(PropertyName = "areaOfInterest")] |
| 36 | 52 | | public BoundingRect AreaOfInterest { get; private set; } |
| | 53 | |
|
| | 54 | | /// <summary> |
| | 55 | | /// Gets or sets id of the REST API request. |
| | 56 | | /// </summary> |
| | 57 | | [JsonProperty(PropertyName = "requestId")] |
| 0 | 58 | | public string RequestId { get; set; } |
| | 59 | |
|
| | 60 | | /// <summary> |
| | 61 | | /// </summary> |
| | 62 | | [JsonProperty(PropertyName = "metadata")] |
| 16 | 63 | | public ImageMetadata Metadata { get; set; } |
| | 64 | |
|
| | 65 | | } |
| | 66 | | } |