< Summary

Class:Microsoft.Azure.CognitiveServices.Search.ImageSearch.Models.RecognizedEntity
Assembly:Microsoft.Azure.CognitiveServices.Search.BingImageSearch
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingImageSearch\src\Generated\ImageSearch\Models\RecognizedEntity.cs
Covered lines:0
Uncovered lines:8
Coverable lines:8
Total lines:66
Line coverage:0% (0 of 8)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_Entity()-0%100%
get_MatchConfidence()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingImageSearch\src\Generated\ImageSearch\Models\RecognizedEntity.cs

#LineLine coverage
 1// <auto-generated>
 2// Code generated by Microsoft (R) AutoRest Code Generator.
 3// Changes may cause incorrect behavior and will be lost if the code is
 4// regenerated.
 5// </auto-generated>
 6
 7namespace Microsoft.Azure.CognitiveServices.Search.ImageSearch.Models
 8{
 9    using Newtonsoft.Json;
 10    using System.Linq;
 11
 12    /// <summary>
 13    /// Defines a recognized entity.
 14    /// </summary>
 15    public partial class RecognizedEntity : Response
 16    {
 17        /// <summary>
 18        /// Initializes a new instance of the RecognizedEntity class.
 19        /// </summary>
 020        public RecognizedEntity()
 21        {
 22            CustomInit();
 023        }
 24
 25        /// <summary>
 26        /// Initializes a new instance of the RecognizedEntity class.
 27        /// </summary>
 28        /// <param name="id">A String identifier.</param>
 29        /// <param name="readLink">The URL that returns this resource.</param>
 30        /// <param name="webSearchUrl">The URL To Bing's search result for this
 31        /// item.</param>
 32        /// <param name="entity">The entity that was recognized. The following
 33        /// are the possible entity objects: Person</param>
 34        /// <param name="matchConfidence">The confidence that Bing has that the
 35        /// entity in the image matches this entity. The confidence ranges from
 36        /// 0.0 through 1.0 with 1.0 being very confident.</param>
 37        public RecognizedEntity(string id = default(string), string readLink = default(string), string webSearchUrl = de
 038            : base(id, readLink, webSearchUrl)
 39        {
 040            Entity = entity;
 041            MatchConfidence = matchConfidence;
 42            CustomInit();
 043        }
 44
 45        /// <summary>
 46        /// An initialization method that performs custom operations like setting defaults
 47        /// </summary>
 48        partial void CustomInit();
 49
 50        /// <summary>
 51        /// Gets the entity that was recognized. The following are the possible
 52        /// entity objects: Person
 53        /// </summary>
 54        [JsonProperty(PropertyName = "entity")]
 055        public Thing Entity { get; private set; }
 56
 57        /// <summary>
 58        /// Gets the confidence that Bing has that the entity in the image
 59        /// matches this entity. The confidence ranges from 0.0 through 1.0
 60        /// with 1.0 being very confident.
 61        /// </summary>
 62        [JsonProperty(PropertyName = "matchConfidence")]
 063        public double? MatchConfidence { get; private set; }
 64
 65    }
 66}