< Summary

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

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingImageSearch\src\Generated\ImageSearch\Models\SearchResultsAnswer.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 search result answer.
 14    /// </summary>
 15    public partial class SearchResultsAnswer : Answer
 16    {
 17        /// <summary>
 18        /// Initializes a new instance of the SearchResultsAnswer class.
 19        /// </summary>
 220        public SearchResultsAnswer()
 21        {
 22            CustomInit();
 223        }
 24
 25        /// <summary>
 26        /// Initializes a new instance of the SearchResultsAnswer 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="totalEstimatedMatches">The estimated number of
 33        /// webpages that are relevant to the query. Use this number along with
 34        /// the count and offset query parameters to page the results.</param>
 35        public SearchResultsAnswer(string id = default(string), string readLink = default(string), string webSearchUrl =
 036            : base(id, readLink, webSearchUrl)
 37        {
 038            TotalEstimatedMatches = totalEstimatedMatches;
 39            CustomInit();
 040        }
 41
 42        /// <summary>
 43        /// An initialization method that performs custom operations like setting defaults
 44        /// </summary>
 45        partial void CustomInit();
 46
 47        /// <summary>
 48        /// Gets the estimated number of webpages that are relevant to the
 49        /// query. Use this number along with the count and offset query
 50        /// parameters to page the results.
 51        /// </summary>
 52        [JsonProperty(PropertyName = "totalEstimatedMatches")]
 053        public long? TotalEstimatedMatches { get; private set; }
 54
 55    }
 56}