< Summary

Class:Microsoft.Azure.CognitiveServices.Search.VideoSearch.Models.SearchResultsAnswer
Assembly:Microsoft.Azure.CognitiveServices.Search.BingVideoSearch
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingVideoSearch\src\Generated\VideoSearch\Models\SearchResultsAnswer.cs
Covered lines:2
Uncovered lines:6
Coverable lines:8
Total lines:60
Line coverage:25% (2 of 8)
Covered branches:0
Total branches:0

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingVideoSearch\src\Generated\VideoSearch\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.VideoSearch.Models
 8{
 9    using Newtonsoft.Json;
 10    using System.Collections;
 11    using System.Collections.Generic;
 12    using System.Linq;
 13
 14    public partial class SearchResultsAnswer : Answer
 15    {
 16        /// <summary>
 17        /// Initializes a new instance of the SearchResultsAnswer class.
 18        /// </summary>
 219        public SearchResultsAnswer()
 20        {
 21            CustomInit();
 222        }
 23
 24        /// <summary>
 25        /// Initializes a new instance of the SearchResultsAnswer class.
 26        /// </summary>
 27        /// <param name="id">A String identifier.</param>
 28        /// <param name="webSearchUrl">The URL To Bing's search result for this
 29        /// item.</param>
 30        /// <param name="totalEstimatedMatches">The estimated number of
 31        /// webpages that are relevant to the query. Use this number along with
 32        /// the count and offset query parameters to page the results.</param>
 33        public SearchResultsAnswer(string id = default(string), string webSearchUrl = default(string), IList<Query> foll
 034            : base(id, webSearchUrl, followUpQueries)
 35        {
 036            TotalEstimatedMatches = totalEstimatedMatches;
 037            IsFamilyFriendly = isFamilyFriendly;
 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 estimated number of webpages that are relevant to the
 48        /// query. Use this number along with the count and offset query
 49        /// parameters to page the results.
 50        /// </summary>
 51        [JsonProperty(PropertyName = "totalEstimatedMatches")]
 052        public long? TotalEstimatedMatches { get; private set; }
 53
 54        /// <summary>
 55        /// </summary>
 56        [JsonProperty(PropertyName = "isFamilyFriendly")]
 057        public bool? IsFamilyFriendly { get; private set; }
 58
 59    }
 60}