< Summary

Class:Microsoft.Azure.CognitiveServices.Search.ImageSearch.Models.Response
Assembly:Microsoft.Azure.CognitiveServices.Search.BingImageSearch
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingImageSearch\src\Generated\ImageSearch\Models\Response.cs
Covered lines:3
Uncovered lines:5
Coverable lines:8
Total lines:59
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_ReadLink()-0%100%
get_WebSearchUrl()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingImageSearch\src\Generated\ImageSearch\Models\Response.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 response. All schemas that could be returned at the root of a
 14    /// response should inherit from this
 15    /// </summary>
 16    public partial class Response : Identifiable
 17    {
 18        /// <summary>
 19        /// Initializes a new instance of the Response class.
 20        /// </summary>
 115021        public Response()
 22        {
 23            CustomInit();
 115024        }
 25
 26        /// <summary>
 27        /// Initializes a new instance of the Response class.
 28        /// </summary>
 29        /// <param name="id">A String identifier.</param>
 30        /// <param name="readLink">The URL that returns this resource.</param>
 31        /// <param name="webSearchUrl">The URL To Bing's search result for this
 32        /// item.</param>
 33        public Response(string id = default(string), string readLink = default(string), string webSearchUrl = default(st
 034            : base(id)
 35        {
 036            ReadLink = readLink;
 037            WebSearchUrl = webSearchUrl;
 38            CustomInit();
 039        }
 40
 41        /// <summary>
 42        /// An initialization method that performs custom operations like setting defaults
 43        /// </summary>
 44        partial void CustomInit();
 45
 46        /// <summary>
 47        /// Gets the URL that returns this resource.
 48        /// </summary>
 49        [JsonProperty(PropertyName = "readLink")]
 050        public string ReadLink { get; private set; }
 51
 52        /// <summary>
 53        /// Gets the URL To Bing's search result for this item.
 54        /// </summary>
 55        [JsonProperty(PropertyName = "webSearchUrl")]
 30456        public string WebSearchUrl { get; private set; }
 57
 58    }
 59}