< Summary

Class:Microsoft.Azure.CognitiveServices.Vision.Face.Models.Emotion
Assembly:Microsoft.Azure.CognitiveServices.Vision.Face
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.Face\src\Generated\Models\Emotion.cs
Covered lines:10
Uncovered lines:10
Coverable lines:20
Total lines:92
Line coverage:50% (10 of 20)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_Anger()-100%100%
get_Contempt()-100%100%
get_Disgust()-100%100%
get_Fear()-100%100%
get_Happiness()-100%100%
get_Neutral()-100%100%
get_Sadness()-100%100%
get_Surprise()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.Face\src\Generated\Models\Emotion.cs

#LineLine coverage
 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
 11namespace 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>
 425        public Emotion()
 26        {
 27            CustomInit();
 428        }
 29
 30        /// <summary>
 31        /// Initializes a new instance of the Emotion class.
 32        /// </summary>
 033        public Emotion(double anger = default(double), double contempt = default(double), double disgust = default(doubl
 34        {
 035            Anger = anger;
 036            Contempt = contempt;
 037            Disgust = disgust;
 038            Fear = fear;
 039            Happiness = happiness;
 040            Neutral = neutral;
 041            Sadness = sadness;
 042            Surprise = surprise;
 43            CustomInit();
 044        }
 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")]
 854        public double Anger { get; set; }
 55
 56        /// <summary>
 57        /// </summary>
 58        [JsonProperty(PropertyName = "contempt")]
 859        public double Contempt { get; set; }
 60
 61        /// <summary>
 62        /// </summary>
 63        [JsonProperty(PropertyName = "disgust")]
 864        public double Disgust { get; set; }
 65
 66        /// <summary>
 67        /// </summary>
 68        [JsonProperty(PropertyName = "fear")]
 869        public double Fear { get; set; }
 70
 71        /// <summary>
 72        /// </summary>
 73        [JsonProperty(PropertyName = "happiness")]
 874        public double Happiness { get; set; }
 75
 76        /// <summary>
 77        /// </summary>
 78        [JsonProperty(PropertyName = "neutral")]
 1079        public double Neutral { get; set; }
 80
 81        /// <summary>
 82        /// </summary>
 83        [JsonProperty(PropertyName = "sadness")]
 884        public double Sadness { get; set; }
 85
 86        /// <summary>
 87        /// </summary>
 88        [JsonProperty(PropertyName = "surprise")]
 889        public double Surprise { get; set; }
 90
 91    }
 92}