| | 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 | | /// An object describing a face identified in the image. |
| | 18 | | /// </summary> |
| | 19 | | public partial class FaceDescription |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the FaceDescription class. |
| | 23 | | /// </summary> |
| 0 | 24 | | public FaceDescription() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 0 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the FaceDescription class. |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="age">Possible age of the face.</param> |
| | 33 | | /// <param name="gender">Possible gender of the face. Possible values |
| | 34 | | /// include: 'Male', 'Female'</param> |
| | 35 | | /// <param name="faceRectangle">Rectangle in the image containing the |
| | 36 | | /// identified face.</param> |
| 0 | 37 | | public FaceDescription(int age = default(int), Gender? gender = default(Gender?), FaceRectangle faceRectangle = |
| | 38 | | { |
| 0 | 39 | | Age = age; |
| 0 | 40 | | Gender = gender; |
| 0 | 41 | | FaceRectangle = faceRectangle; |
| | 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 possible age of the face. |
| | 52 | | /// </summary> |
| | 53 | | [JsonProperty(PropertyName = "age")] |
| 0 | 54 | | public int Age { get; set; } |
| | 55 | |
|
| | 56 | | /// <summary> |
| | 57 | | /// Gets or sets possible gender of the face. Possible values include: |
| | 58 | | /// 'Male', 'Female' |
| | 59 | | /// </summary> |
| | 60 | | [JsonProperty(PropertyName = "gender")] |
| 0 | 61 | | public Gender? Gender { get; set; } |
| | 62 | |
|
| | 63 | | /// <summary> |
| | 64 | | /// Gets or sets rectangle in the image containing the identified face. |
| | 65 | | /// </summary> |
| | 66 | | [JsonProperty(PropertyName = "faceRectangle")] |
| 0 | 67 | | public FaceRectangle FaceRectangle { get; set; } |
| | 68 | |
|
| | 69 | | } |
| | 70 | | } |