< Summary

Class:Microsoft.Azure.CognitiveServices.Vision.ComputerVision.Models.ImageTag
Assembly:Microsoft.Azure.CognitiveServices.Vision.ComputerVision
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.ComputerVision\src\Generated\Models\ImageTag.cs
Covered lines:4
Uncovered lines:6
Coverable lines:10
Total lines:68
Line coverage:40% (4 of 10)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_Name()-100%100%
get_Confidence()-100%100%
get_Hint()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.ComputerVision\src\Generated\Models\ImageTag.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.ComputerVision.Models
 12{
 13    using Newtonsoft.Json;
 14    using System.Linq;
 15
 16    /// <summary>
 17    /// An entity observation in the image, along with the confidence score.
 18    /// </summary>
 19    public partial class ImageTag
 20    {
 21        /// <summary>
 22        /// Initializes a new instance of the ImageTag class.
 23        /// </summary>
 17824        public ImageTag()
 25        {
 26            CustomInit();
 17827        }
 28
 29        /// <summary>
 30        /// Initializes a new instance of the ImageTag class.
 31        /// </summary>
 32        /// <param name="name">Name of the entity.</param>
 33        /// <param name="confidence">The level of confidence that the entity
 34        /// was observed.</param>
 35        /// <param name="hint">Optional hint/details for this tag.</param>
 036        public ImageTag(string name = default(string), double confidence = default(double), string hint = default(string
 37        {
 038            Name = name;
 039            Confidence = confidence;
 040            Hint = hint;
 41            CustomInit();
 042        }
 43
 44        /// <summary>
 45        /// An initialization method that performs custom operations like setting defaults
 46        /// </summary>
 47        partial void CustomInit();
 48
 49        /// <summary>
 50        /// Gets or sets name of the entity.
 51        /// </summary>
 52        [JsonProperty(PropertyName = "name")]
 27253        public string Name { get; set; }
 54
 55        /// <summary>
 56        /// Gets or sets the level of confidence that the entity was observed.
 57        /// </summary>
 58        [JsonProperty(PropertyName = "confidence")]
 22659        public double Confidence { get; set; }
 60
 61        /// <summary>
 62        /// Gets or sets optional hint/details for this tag.
 63        /// </summary>
 64        [JsonProperty(PropertyName = "hint")]
 065        public string Hint { get; set; }
 66
 67    }
 68}