< Summary

Class:Microsoft.Azure.CognitiveServices.Search.LocalSearch.Models.SearchResultsAnswer
Assembly:Microsoft.Azure.CognitiveServices.Search.BingLocalSearch
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingLocalSearch\src\Generated\LocalSearch\Models\SearchResultsAnswer.cs
Covered lines:0
Uncovered lines:13
Coverable lines:13
Total lines:83
Line coverage:0% (0 of 13)
Covered branches:0
Total branches:2
Branch coverage:0% (0 of 2)

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingLocalSearch\src\Generated\LocalSearch\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.LocalSearch.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 search result answer.
 16    /// </summary>
 17    public partial class SearchResultsAnswer : Answer
 18    {
 19        /// <summary>
 20        /// Initializes a new instance of the SearchResultsAnswer class.
 21        /// </summary>
 022        public SearchResultsAnswer()
 23        {
 24            CustomInit();
 025        }
 26
 27        /// <summary>
 28        /// Initializes a new instance of the SearchResultsAnswer class.
 29        /// </summary>
 30        /// <param name="id">A String identifier.</param>
 31        /// <param name="readLink">The URL that returns this resource.</param>
 32        /// <param name="webSearchUrl">The URL to Bing's search result for this
 33        /// item.</param>
 34        /// <param name="totalEstimatedMatches">The estimated number of
 35        /// webpages that are relevant to the query. Use this number along with
 36        /// the count and offset query parameters to page the results.</param>
 37        public SearchResultsAnswer(string id = default(string), string readLink = default(string), string webSearchUrl =
 038            : base(id, readLink, webSearchUrl, potentialAction, immediateAction, preferredClickthroughUrl, adaptiveCard)
 39        {
 040            QueryContext = queryContext;
 041            TotalEstimatedMatches = totalEstimatedMatches;
 042            IsFamilyFriendly = isFamilyFriendly;
 43            CustomInit();
 044        }
 45
 46        /// <summary>
 47        /// An initialization method that performs custom operations like setting defaults
 48        /// </summary>
 49        partial void CustomInit();
 50
 51        /// <summary>
 52        /// </summary>
 53        [JsonProperty(PropertyName = "queryContext")]
 054        public QueryContext QueryContext { get; private set; }
 55
 56        /// <summary>
 57        /// Gets the estimated number of webpages that are relevant to the
 58        /// query. Use this number along with the count and offset query
 59        /// parameters to page the results.
 60        /// </summary>
 61        [JsonProperty(PropertyName = "totalEstimatedMatches")]
 062        public long? TotalEstimatedMatches { get; private set; }
 63
 64        /// <summary>
 65        /// </summary>
 66        [JsonProperty(PropertyName = "isFamilyFriendly")]
 067        public bool? IsFamilyFriendly { get; private set; }
 68
 69        /// <summary>
 70        /// Validate the object.
 71        /// </summary>
 72        /// <exception cref="Rest.ValidationException">
 73        /// Thrown if validation fails
 74        /// </exception>
 75        public virtual void Validate()
 76        {
 077            if (QueryContext != null)
 78            {
 079                QueryContext.Validate();
 80            }
 081        }
 82    }
 83}