< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_ForeheadOccluded()-100%100%
get_EyeOccluded()-100%100%
get_MouthOccluded()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.Face\src\Generated\Models\Occlusion.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 occlusions on a given face.
 18    /// </summary>
 19    public partial class Occlusion
 20    {
 21        /// <summary>
 22        /// Initializes a new instance of the Occlusion class.
 23        /// </summary>
 224        public Occlusion()
 25        {
 26            CustomInit();
 227        }
 28
 29        /// <summary>
 30        /// Initializes a new instance of the Occlusion class.
 31        /// </summary>
 32        /// <param name="foreheadOccluded">A boolean value indicating whether
 33        /// forehead is occluded.</param>
 34        /// <param name="eyeOccluded">A boolean value indicating whether eyes
 35        /// are occluded.</param>
 36        /// <param name="mouthOccluded">A boolean value indicating whether the
 37        /// mouth is occluded.</param>
 038        public Occlusion(bool foreheadOccluded = default(bool), bool eyeOccluded = default(bool), bool mouthOccluded = d
 39        {
 040            ForeheadOccluded = foreheadOccluded;
 041            EyeOccluded = eyeOccluded;
 042            MouthOccluded = mouthOccluded;
 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        /// Gets or sets a boolean value indicating whether forehead is
 53        /// occluded.
 54        /// </summary>
 55        [JsonProperty(PropertyName = "foreheadOccluded")]
 456        public bool ForeheadOccluded { get; set; }
 57
 58        /// <summary>
 59        /// Gets or sets a boolean value indicating whether eyes are occluded.
 60        /// </summary>
 61        [JsonProperty(PropertyName = "eyeOccluded")]
 462        public bool EyeOccluded { get; set; }
 63
 64        /// <summary>
 65        /// Gets or sets a boolean value indicating whether the mouth is
 66        /// occluded.
 67        /// </summary>
 68        [JsonProperty(PropertyName = "mouthOccluded")]
 469        public bool MouthOccluded { get; set; }
 70
 71    }
 72}