< Summary

Class:Microsoft.Azure.CognitiveServices.Vision.Face.Models.FaceLandmarks
Assembly:Microsoft.Azure.CognitiveServices.Vision.Face
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.Face\src\Generated\Models\FaceLandmarks.cs
Covered lines:29
Uncovered lines:84
Coverable lines:113
Total lines:323
Line coverage:25.6% (29 of 113)
Covered branches:0
Total branches:54
Branch coverage:0% (0 of 54)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_PupilLeft()-100%100%
get_PupilRight()-100%100%
get_NoseTip()-100%100%
get_MouthLeft()-100%100%
get_MouthRight()-100%100%
get_EyebrowLeftOuter()-100%100%
get_EyebrowLeftInner()-100%100%
get_EyeLeftOuter()-100%100%
get_EyeLeftTop()-100%100%
get_EyeLeftBottom()-100%100%
get_EyeLeftInner()-100%100%
get_EyebrowRightInner()-100%100%
get_EyebrowRightOuter()-100%100%
get_EyeRightInner()-100%100%
get_EyeRightTop()-100%100%
get_EyeRightBottom()-100%100%
get_EyeRightOuter()-100%100%
get_NoseRootLeft()-100%100%
get_NoseRootRight()-100%100%
get_NoseLeftAlarTop()-100%100%
get_NoseRightAlarTop()-100%100%
get_NoseLeftAlarOutTip()-100%100%
get_NoseRightAlarOutTip()-100%100%
get_UpperLipTop()-100%100%
get_UpperLipBottom()-100%100%
get_UnderLipTop()-100%100%
get_UnderLipBottom()-100%100%
Validate()-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.Face\src\Generated\Models\FaceLandmarks.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    /// A collection of 27-point face landmarks pointing to the important
 18    /// positions of face components.
 19    /// </summary>
 20    public partial class FaceLandmarks
 21    {
 22        /// <summary>
 23        /// Initializes a new instance of the FaceLandmarks class.
 24        /// </summary>
 225        public FaceLandmarks()
 26        {
 27            CustomInit();
 228        }
 29
 30        /// <summary>
 31        /// Initializes a new instance of the FaceLandmarks class.
 32        /// </summary>
 033        public FaceLandmarks(Coordinate pupilLeft = default(Coordinate), Coordinate pupilRight = default(Coordinate), Co
 34        {
 035            PupilLeft = pupilLeft;
 036            PupilRight = pupilRight;
 037            NoseTip = noseTip;
 038            MouthLeft = mouthLeft;
 039            MouthRight = mouthRight;
 040            EyebrowLeftOuter = eyebrowLeftOuter;
 041            EyebrowLeftInner = eyebrowLeftInner;
 042            EyeLeftOuter = eyeLeftOuter;
 043            EyeLeftTop = eyeLeftTop;
 044            EyeLeftBottom = eyeLeftBottom;
 045            EyeLeftInner = eyeLeftInner;
 046            EyebrowRightInner = eyebrowRightInner;
 047            EyebrowRightOuter = eyebrowRightOuter;
 048            EyeRightInner = eyeRightInner;
 049            EyeRightTop = eyeRightTop;
 050            EyeRightBottom = eyeRightBottom;
 051            EyeRightOuter = eyeRightOuter;
 052            NoseRootLeft = noseRootLeft;
 053            NoseRootRight = noseRootRight;
 054            NoseLeftAlarTop = noseLeftAlarTop;
 055            NoseRightAlarTop = noseRightAlarTop;
 056            NoseLeftAlarOutTip = noseLeftAlarOutTip;
 057            NoseRightAlarOutTip = noseRightAlarOutTip;
 058            UpperLipTop = upperLipTop;
 059            UpperLipBottom = upperLipBottom;
 060            UnderLipTop = underLipTop;
 061            UnderLipBottom = underLipBottom;
 62            CustomInit();
 063        }
 64
 65        /// <summary>
 66        /// An initialization method that performs custom operations like setting defaults
 67        /// </summary>
 68        partial void CustomInit();
 69
 70        /// <summary>
 71        /// </summary>
 72        [JsonProperty(PropertyName = "pupilLeft")]
 873        public Coordinate PupilLeft { get; set; }
 74
 75        /// <summary>
 76        /// </summary>
 77        [JsonProperty(PropertyName = "pupilRight")]
 878        public Coordinate PupilRight { get; set; }
 79
 80        /// <summary>
 81        /// </summary>
 82        [JsonProperty(PropertyName = "noseTip")]
 883        public Coordinate NoseTip { get; set; }
 84
 85        /// <summary>
 86        /// </summary>
 87        [JsonProperty(PropertyName = "mouthLeft")]
 888        public Coordinate MouthLeft { get; set; }
 89
 90        /// <summary>
 91        /// </summary>
 92        [JsonProperty(PropertyName = "mouthRight")]
 893        public Coordinate MouthRight { get; set; }
 94
 95        /// <summary>
 96        /// </summary>
 97        [JsonProperty(PropertyName = "eyebrowLeftOuter")]
 698        public Coordinate EyebrowLeftOuter { get; set; }
 99
 100        /// <summary>
 101        /// </summary>
 102        [JsonProperty(PropertyName = "eyebrowLeftInner")]
 6103        public Coordinate EyebrowLeftInner { get; set; }
 104
 105        /// <summary>
 106        /// </summary>
 107        [JsonProperty(PropertyName = "eyeLeftOuter")]
 8108        public Coordinate EyeLeftOuter { get; set; }
 109
 110        /// <summary>
 111        /// </summary>
 112        [JsonProperty(PropertyName = "eyeLeftTop")]
 8113        public Coordinate EyeLeftTop { get; set; }
 114
 115        /// <summary>
 116        /// </summary>
 117        [JsonProperty(PropertyName = "eyeLeftBottom")]
 8118        public Coordinate EyeLeftBottom { get; set; }
 119
 120        /// <summary>
 121        /// </summary>
 122        [JsonProperty(PropertyName = "eyeLeftInner")]
 8123        public Coordinate EyeLeftInner { get; set; }
 124
 125        /// <summary>
 126        /// </summary>
 127        [JsonProperty(PropertyName = "eyebrowRightInner")]
 8128        public Coordinate EyebrowRightInner { get; set; }
 129
 130        /// <summary>
 131        /// </summary>
 132        [JsonProperty(PropertyName = "eyebrowRightOuter")]
 8133        public Coordinate EyebrowRightOuter { get; set; }
 134
 135        /// <summary>
 136        /// </summary>
 137        [JsonProperty(PropertyName = "eyeRightInner")]
 8138        public Coordinate EyeRightInner { get; set; }
 139
 140        /// <summary>
 141        /// </summary>
 142        [JsonProperty(PropertyName = "eyeRightTop")]
 8143        public Coordinate EyeRightTop { get; set; }
 144
 145        /// <summary>
 146        /// </summary>
 147        [JsonProperty(PropertyName = "eyeRightBottom")]
 8148        public Coordinate EyeRightBottom { get; set; }
 149
 150        /// <summary>
 151        /// </summary>
 152        [JsonProperty(PropertyName = "eyeRightOuter")]
 8153        public Coordinate EyeRightOuter { get; set; }
 154
 155        /// <summary>
 156        /// </summary>
 157        [JsonProperty(PropertyName = "noseRootLeft")]
 8158        public Coordinate NoseRootLeft { get; set; }
 159
 160        /// <summary>
 161        /// </summary>
 162        [JsonProperty(PropertyName = "noseRootRight")]
 8163        public Coordinate NoseRootRight { get; set; }
 164
 165        /// <summary>
 166        /// </summary>
 167        [JsonProperty(PropertyName = "noseLeftAlarTop")]
 8168        public Coordinate NoseLeftAlarTop { get; set; }
 169
 170        /// <summary>
 171        /// </summary>
 172        [JsonProperty(PropertyName = "noseRightAlarTop")]
 8173        public Coordinate NoseRightAlarTop { get; set; }
 174
 175        /// <summary>
 176        /// </summary>
 177        [JsonProperty(PropertyName = "noseLeftAlarOutTip")]
 8178        public Coordinate NoseLeftAlarOutTip { get; set; }
 179
 180        /// <summary>
 181        /// </summary>
 182        [JsonProperty(PropertyName = "noseRightAlarOutTip")]
 8183        public Coordinate NoseRightAlarOutTip { get; set; }
 184
 185        /// <summary>
 186        /// </summary>
 187        [JsonProperty(PropertyName = "upperLipTop")]
 8188        public Coordinate UpperLipTop { get; set; }
 189
 190        /// <summary>
 191        /// </summary>
 192        [JsonProperty(PropertyName = "upperLipBottom")]
 8193        public Coordinate UpperLipBottom { get; set; }
 194
 195        /// <summary>
 196        /// </summary>
 197        [JsonProperty(PropertyName = "underLipTop")]
 8198        public Coordinate UnderLipTop { get; set; }
 199
 200        /// <summary>
 201        /// </summary>
 202        [JsonProperty(PropertyName = "underLipBottom")]
 8203        public Coordinate UnderLipBottom { get; set; }
 204
 205        /// <summary>
 206        /// Validate the object.
 207        /// </summary>
 208        /// <exception cref="Rest.ValidationException">
 209        /// Thrown if validation fails
 210        /// </exception>
 211        public virtual void Validate()
 212        {
 0213            if (PupilLeft != null)
 214            {
 0215                PupilLeft.Validate();
 216            }
 0217            if (PupilRight != null)
 218            {
 0219                PupilRight.Validate();
 220            }
 0221            if (NoseTip != null)
 222            {
 0223                NoseTip.Validate();
 224            }
 0225            if (MouthLeft != null)
 226            {
 0227                MouthLeft.Validate();
 228            }
 0229            if (MouthRight != null)
 230            {
 0231                MouthRight.Validate();
 232            }
 0233            if (EyebrowLeftOuter != null)
 234            {
 0235                EyebrowLeftOuter.Validate();
 236            }
 0237            if (EyebrowLeftInner != null)
 238            {
 0239                EyebrowLeftInner.Validate();
 240            }
 0241            if (EyeLeftOuter != null)
 242            {
 0243                EyeLeftOuter.Validate();
 244            }
 0245            if (EyeLeftTop != null)
 246            {
 0247                EyeLeftTop.Validate();
 248            }
 0249            if (EyeLeftBottom != null)
 250            {
 0251                EyeLeftBottom.Validate();
 252            }
 0253            if (EyeLeftInner != null)
 254            {
 0255                EyeLeftInner.Validate();
 256            }
 0257            if (EyebrowRightInner != null)
 258            {
 0259                EyebrowRightInner.Validate();
 260            }
 0261            if (EyebrowRightOuter != null)
 262            {
 0263                EyebrowRightOuter.Validate();
 264            }
 0265            if (EyeRightInner != null)
 266            {
 0267                EyeRightInner.Validate();
 268            }
 0269            if (EyeRightTop != null)
 270            {
 0271                EyeRightTop.Validate();
 272            }
 0273            if (EyeRightBottom != null)
 274            {
 0275                EyeRightBottom.Validate();
 276            }
 0277            if (EyeRightOuter != null)
 278            {
 0279                EyeRightOuter.Validate();
 280            }
 0281            if (NoseRootLeft != null)
 282            {
 0283                NoseRootLeft.Validate();
 284            }
 0285            if (NoseRootRight != null)
 286            {
 0287                NoseRootRight.Validate();
 288            }
 0289            if (NoseLeftAlarTop != null)
 290            {
 0291                NoseLeftAlarTop.Validate();
 292            }
 0293            if (NoseRightAlarTop != null)
 294            {
 0295                NoseRightAlarTop.Validate();
 296            }
 0297            if (NoseLeftAlarOutTip != null)
 298            {
 0299                NoseLeftAlarOutTip.Validate();
 300            }
 0301            if (NoseRightAlarOutTip != null)
 302            {
 0303                NoseRightAlarOutTip.Validate();
 304            }
 0305            if (UpperLipTop != null)
 306            {
 0307                UpperLipTop.Validate();
 308            }
 0309            if (UpperLipBottom != null)
 310            {
 0311                UpperLipBottom.Validate();
 312            }
 0313            if (UnderLipTop != null)
 314            {
 0315                UnderLipTop.Validate();
 316            }
 0317            if (UnderLipBottom != null)
 318            {
 0319                UnderLipBottom.Validate();
 320            }
 0321        }
 322    }
 323}