< Summary

Class:Microsoft.Azure.CognitiveServices.Search.VisualSearch.Models.ImageKnowledge
Assembly:Microsoft.Azure.CognitiveServices.Search.BingVisualSearch
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingVisualSearch\src\Generated\Models\ImageKnowledge.cs
Covered lines:3
Uncovered lines:5
Coverable lines:8
Total lines:65
Line coverage:37.5% (3 of 8)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_Tags()-100%100%
get_Image()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingVisualSearch\src\Generated\Models\ImageKnowledge.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.VisualSearch.Models
 8{
 9    using Newtonsoft.Json;
 10    using System.Collections;
 11    using System.Collections.Generic;
 12    using System.Linq;
 13
 14    /// <summary>
 15    /// Defines a visual search API response.
 16    /// </summary>
 17    public partial class ImageKnowledge : Response
 18    {
 19        /// <summary>
 20        /// Initializes a new instance of the ImageKnowledge class.
 21        /// </summary>
 822        public ImageKnowledge()
 23        {
 24            CustomInit();
 825        }
 26
 27        /// <summary>
 28        /// Initializes a new instance of the ImageKnowledge class.
 29        /// </summary>
 30        /// <param name="id">A String identifier.</param>
 31        /// <param name="readLink">The URL that returns this resource. To use
 32        /// the URL, append query parameters as appropriate and include the
 33        /// Ocp-Apim-Subscription-Key header.</param>
 34        /// <param name="webSearchUrl">The URL to Bing's search result for this
 35        /// item.</param>
 36        /// <param name="tags">A list of visual search tags.</param>
 37        /// <param name="image">Image object containing metadata about the
 38        /// requested image.</param>
 39        public ImageKnowledge(string id = default(string), string readLink = default(string), string webSearchUrl = defa
 040            : base(id, readLink, webSearchUrl)
 41        {
 042            Tags = tags;
 043            Image = image;
 44            CustomInit();
 045        }
 46
 47        /// <summary>
 48        /// An initialization method that performs custom operations like setting defaults
 49        /// </summary>
 50        partial void CustomInit();
 51
 52        /// <summary>
 53        /// Gets a list of visual search tags.
 54        /// </summary>
 55        [JsonProperty(PropertyName = "tags")]
 3256        public IList<ImageTag> Tags { get; private set; }
 57
 58        /// <summary>
 59        /// Gets image object containing metadata about the requested image.
 60        /// </summary>
 61        [JsonProperty(PropertyName = "image")]
 062        public ImageObject Image { get; private set; }
 63
 64    }
 65}