< Summary

Class:Microsoft.Azure.CognitiveServices.Search.CustomSearch.Models.Response
Assembly:Microsoft.Azure.CognitiveServices.Search.BingCustomSearch
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingCustomSearch\src\Generated\CustomSearch\Models\Response.cs
Covered lines:3
Uncovered lines:3
Coverable lines:6
Total lines:51
Line coverage:50% (3 of 6)
Covered branches:0
Total branches:0

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingCustomSearch\src\Generated\CustomSearch\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.CustomSearch.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>
 621        public Response()
 22        {
 23            CustomInit();
 624        }
 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="webSearchUrl">The URL To Bing's search result for this
 31        /// item.</param>
 32        public Response(string id = default(string), string webSearchUrl = default(string))
 033            : base(id)
 34        {
 035            WebSearchUrl = webSearchUrl;
 36            CustomInit();
 037        }
 38
 39        /// <summary>
 40        /// An initialization method that performs custom operations like setting defaults
 41        /// </summary>
 42        partial void CustomInit();
 43
 44        /// <summary>
 45        /// Gets the URL To Bing's search result for this item.
 46        /// </summary>
 47        [JsonProperty(PropertyName = "webSearchUrl")]
 448        public string WebSearchUrl { get; private set; }
 49
 50    }
 51}