| | | 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.CustomVision.Training.Models |
| | | 12 | | { |
| | | 13 | | using Newtonsoft.Json; |
| | | 14 | | using System.Linq; |
| | | 15 | | |
| | | 16 | | /// <summary> |
| | | 17 | | /// Bounding box that defines a region of an image. |
| | | 18 | | /// </summary> |
| | | 19 | | public partial class BoundingBox |
| | | 20 | | { |
| | | 21 | | /// <summary> |
| | | 22 | | /// Initializes a new instance of the BoundingBox class. |
| | | 23 | | /// </summary> |
| | 4 | 24 | | public BoundingBox() |
| | | 25 | | { |
| | | 26 | | CustomInit(); |
| | 4 | 27 | | } |
| | | 28 | | |
| | | 29 | | /// <summary> |
| | | 30 | | /// Initializes a new instance of the BoundingBox class. |
| | | 31 | | /// </summary> |
| | | 32 | | /// <param name="left">Coordinate of the left boundary.</param> |
| | | 33 | | /// <param name="top">Coordinate of the top boundary.</param> |
| | | 34 | | /// <param name="width">Width.</param> |
| | | 35 | | /// <param name="height">Height.</param> |
| | 0 | 36 | | public BoundingBox(double left, double top, double width, double height) |
| | | 37 | | { |
| | 0 | 38 | | Left = left; |
| | 0 | 39 | | Top = top; |
| | 0 | 40 | | Width = width; |
| | 0 | 41 | | Height = height; |
| | | 42 | | CustomInit(); |
| | 0 | 43 | | } |
| | | 44 | | |
| | | 45 | | /// <summary> |
| | | 46 | | /// An initialization method that performs custom operations like setting defaults |
| | | 47 | | /// </summary> |
| | | 48 | | partial void CustomInit(); |
| | | 49 | | |
| | | 50 | | /// <summary> |
| | | 51 | | /// Gets or sets coordinate of the left boundary. |
| | | 52 | | /// </summary> |
| | | 53 | | [JsonProperty(PropertyName = "left")] |
| | 10 | 54 | | public double Left { get; set; } |
| | | 55 | | |
| | | 56 | | /// <summary> |
| | | 57 | | /// Gets or sets coordinate of the top boundary. |
| | | 58 | | /// </summary> |
| | | 59 | | [JsonProperty(PropertyName = "top")] |
| | 10 | 60 | | public double Top { get; set; } |
| | | 61 | | |
| | | 62 | | /// <summary> |
| | | 63 | | /// Gets or sets width. |
| | | 64 | | /// </summary> |
| | | 65 | | [JsonProperty(PropertyName = "width")] |
| | 10 | 66 | | public double Width { get; set; } |
| | | 67 | | |
| | | 68 | | /// <summary> |
| | | 69 | | /// Gets or sets height. |
| | | 70 | | /// </summary> |
| | | 71 | | [JsonProperty(PropertyName = "height")] |
| | 10 | 72 | | public double Height { get; set; } |
| | | 73 | | |
| | | 74 | | /// <summary> |
| | | 75 | | /// Validate the object. |
| | | 76 | | /// </summary> |
| | | 77 | | /// <exception cref="Rest.ValidationException"> |
| | | 78 | | /// Thrown if validation fails |
| | | 79 | | /// </exception> |
| | | 80 | | public virtual void Validate() |
| | | 81 | | { |
| | | 82 | | //Nothing to validate |
| | 0 | 83 | | } |
| | | 84 | | } |
| | | 85 | | } |