| | | 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.Face.Models |
| | | 12 | | { |
| | | 13 | | using Newtonsoft.Json; |
| | | 14 | | using System.Collections; |
| | | 15 | | using System.Collections.Generic; |
| | | 16 | | using System.Linq; |
| | | 17 | | |
| | | 18 | | /// <summary> |
| | | 19 | | /// Properties describing hair attributes. |
| | | 20 | | /// </summary> |
| | | 21 | | public partial class Hair |
| | | 22 | | { |
| | | 23 | | /// <summary> |
| | | 24 | | /// Initializes a new instance of the Hair class. |
| | | 25 | | /// </summary> |
| | 2 | 26 | | public Hair() |
| | | 27 | | { |
| | | 28 | | CustomInit(); |
| | 2 | 29 | | } |
| | | 30 | | |
| | | 31 | | /// <summary> |
| | | 32 | | /// Initializes a new instance of the Hair class. |
| | | 33 | | /// </summary> |
| | | 34 | | /// <param name="bald">A number describing confidence level of whether |
| | | 35 | | /// the person is bald.</param> |
| | | 36 | | /// <param name="invisible">A boolean value describing whether the hair |
| | | 37 | | /// is visible in the image.</param> |
| | | 38 | | /// <param name="hairColor">An array of candidate colors and confidence |
| | | 39 | | /// level in the presence of each.</param> |
| | 0 | 40 | | public Hair(double bald = default(double), bool invisible = default(bool), IList<HairColor> hairColor = default( |
| | | 41 | | { |
| | 0 | 42 | | Bald = bald; |
| | 0 | 43 | | Invisible = invisible; |
| | 0 | 44 | | HairColor = hairColor; |
| | | 45 | | CustomInit(); |
| | 0 | 46 | | } |
| | | 47 | | |
| | | 48 | | /// <summary> |
| | | 49 | | /// An initialization method that performs custom operations like setting defaults |
| | | 50 | | /// </summary> |
| | | 51 | | partial void CustomInit(); |
| | | 52 | | |
| | | 53 | | /// <summary> |
| | | 54 | | /// Gets or sets a number describing confidence level of whether the |
| | | 55 | | /// person is bald. |
| | | 56 | | /// </summary> |
| | | 57 | | [JsonProperty(PropertyName = "bald")] |
| | 0 | 58 | | public double Bald { get; set; } |
| | | 59 | | |
| | | 60 | | /// <summary> |
| | | 61 | | /// Gets or sets a boolean value describing whether the hair is visible |
| | | 62 | | /// in the image. |
| | | 63 | | /// </summary> |
| | | 64 | | [JsonProperty(PropertyName = "invisible")] |
| | 4 | 65 | | public bool Invisible { get; set; } |
| | | 66 | | |
| | | 67 | | /// <summary> |
| | | 68 | | /// Gets or sets an array of candidate colors and confidence level in |
| | | 69 | | /// the presence of each. |
| | | 70 | | /// </summary> |
| | | 71 | | [JsonProperty(PropertyName = "hairColor")] |
| | 4 | 72 | | public IList<HairColor> HairColor { get; set; } |
| | | 73 | | |
| | | 74 | | } |
| | | 75 | | } |