|  |  | 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 |  |  | 
|  |  | 7 |  | namespace 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> | 
|  | 0 | 20 |  |         public RecognizedEntity() | 
|  |  | 21 |  |         { | 
|  |  | 22 |  |             CustomInit(); | 
|  | 0 | 23 |  |         } | 
|  |  | 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 | 
|  | 0 | 38 |  |             : base(id, readLink, webSearchUrl) | 
|  |  | 39 |  |         { | 
|  | 0 | 40 |  |             Entity = entity; | 
|  | 0 | 41 |  |             MatchConfidence = matchConfidence; | 
|  |  | 42 |  |             CustomInit(); | 
|  | 0 | 43 |  |         } | 
|  |  | 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")] | 
|  | 0 | 55 |  |         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")] | 
|  | 0 | 63 |  |         public double? MatchConfidence { get; private set; } | 
|  |  | 64 |  |  | 
|  |  | 65 |  |     } | 
|  |  | 66 |  | } |