| | | 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.Linq; |
| | | 15 | | |
| | | 16 | | /// <summary> |
| | | 17 | | /// Properties describing facial emotion in form of confidence ranging from |
| | | 18 | | /// 0 to 1. |
| | | 19 | | /// </summary> |
| | | 20 | | public partial class Emotion |
| | | 21 | | { |
| | | 22 | | /// <summary> |
| | | 23 | | /// Initializes a new instance of the Emotion class. |
| | | 24 | | /// </summary> |
| | 4 | 25 | | public Emotion() |
| | | 26 | | { |
| | | 27 | | CustomInit(); |
| | 4 | 28 | | } |
| | | 29 | | |
| | | 30 | | /// <summary> |
| | | 31 | | /// Initializes a new instance of the Emotion class. |
| | | 32 | | /// </summary> |
| | 0 | 33 | | public Emotion(double anger = default(double), double contempt = default(double), double disgust = default(doubl |
| | | 34 | | { |
| | 0 | 35 | | Anger = anger; |
| | 0 | 36 | | Contempt = contempt; |
| | 0 | 37 | | Disgust = disgust; |
| | 0 | 38 | | Fear = fear; |
| | 0 | 39 | | Happiness = happiness; |
| | 0 | 40 | | Neutral = neutral; |
| | 0 | 41 | | Sadness = sadness; |
| | 0 | 42 | | Surprise = surprise; |
| | | 43 | | CustomInit(); |
| | 0 | 44 | | } |
| | | 45 | | |
| | | 46 | | /// <summary> |
| | | 47 | | /// An initialization method that performs custom operations like setting defaults |
| | | 48 | | /// </summary> |
| | | 49 | | partial void CustomInit(); |
| | | 50 | | |
| | | 51 | | /// <summary> |
| | | 52 | | /// </summary> |
| | | 53 | | [JsonProperty(PropertyName = "anger")] |
| | 8 | 54 | | public double Anger { get; set; } |
| | | 55 | | |
| | | 56 | | /// <summary> |
| | | 57 | | /// </summary> |
| | | 58 | | [JsonProperty(PropertyName = "contempt")] |
| | 8 | 59 | | public double Contempt { get; set; } |
| | | 60 | | |
| | | 61 | | /// <summary> |
| | | 62 | | /// </summary> |
| | | 63 | | [JsonProperty(PropertyName = "disgust")] |
| | 8 | 64 | | public double Disgust { get; set; } |
| | | 65 | | |
| | | 66 | | /// <summary> |
| | | 67 | | /// </summary> |
| | | 68 | | [JsonProperty(PropertyName = "fear")] |
| | 8 | 69 | | public double Fear { get; set; } |
| | | 70 | | |
| | | 71 | | /// <summary> |
| | | 72 | | /// </summary> |
| | | 73 | | [JsonProperty(PropertyName = "happiness")] |
| | 8 | 74 | | public double Happiness { get; set; } |
| | | 75 | | |
| | | 76 | | /// <summary> |
| | | 77 | | /// </summary> |
| | | 78 | | [JsonProperty(PropertyName = "neutral")] |
| | 10 | 79 | | public double Neutral { get; set; } |
| | | 80 | | |
| | | 81 | | /// <summary> |
| | | 82 | | /// </summary> |
| | | 83 | | [JsonProperty(PropertyName = "sadness")] |
| | 8 | 84 | | public double Sadness { get; set; } |
| | | 85 | | |
| | | 86 | | /// <summary> |
| | | 87 | | /// </summary> |
| | | 88 | | [JsonProperty(PropertyName = "surprise")] |
| | 8 | 89 | | public double Surprise { get; set; } |
| | | 90 | | |
| | | 91 | | } |
| | | 92 | | } |