< Summary

Class:Microsoft.Azure.CognitiveServices.Search.AutoSuggest.Models.SearchAction
Assembly:Microsoft.Azure.CognitiveServices.Search.BingAutoSuggest
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingAutoSuggest\src\Generated\AutoSuggest\Models\SearchAction.cs
Covered lines:5
Uncovered lines:5
Coverable lines:10
Total lines:74
Line coverage:50% (5 of 10)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_DisplayText()-100%100%
get_Query()-100%100%
get_SearchKind()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingAutoSuggest\src\Generated\AutoSuggest\Models\SearchAction.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.AutoSuggest.Models
 8{
 9    using Newtonsoft.Json;
 10    using System.Collections;
 11    using System.Collections.Generic;
 12    using System.Linq;
 13
 14    public partial class SearchAction : Action
 15    {
 16        /// <summary>
 17        /// Initializes a new instance of the SearchAction class.
 18        /// </summary>
 1619        public SearchAction()
 20        {
 21            CustomInit();
 1622        }
 23
 24        /// <summary>
 25        /// Initializes a new instance of the SearchAction class.
 26        /// </summary>
 27        /// <param name="id">A String identifier.</param>
 28        /// <param name="readLink">The URL that returns this resource.</param>
 29        /// <param name="webSearchUrl">The URL To Bing's search result for this
 30        /// item.</param>
 31        /// <param name="url">The URL to get more information about the thing
 32        /// represented by this object.</param>
 33        /// <param name="thumbnailUrl">The URL to a thumbnail of the
 34        /// item.</param>
 35        /// <param name="about">For internal use only.</param>
 36        /// <param name="mentions">For internal use only.</param>
 37        /// <param name="provider">The source of the creative work.</param>
 38        /// <param name="text">Text content of this creative work</param>
 39        /// <param name="searchKind">Possible values include: 'WebSearch',
 40        /// 'HistorySearch', 'DocumentSearch', 'TagSearch', 'LocationSearch',
 41        /// 'CustomSearch'</param>
 42        public SearchAction(string id = default(string), string readLink = default(string), string webSearchUrl = defaul
 043            : base(id, readLink, webSearchUrl, potentialAction, immediateAction, preferredClickthroughUrl, adaptiveCard,
 44        {
 045            DisplayText = displayText;
 046            Query = query;
 047            SearchKind = searchKind;
 48            CustomInit();
 049        }
 50
 51        /// <summary>
 52        /// An initialization method that performs custom operations like setting defaults
 53        /// </summary>
 54        partial void CustomInit();
 55
 56        /// <summary>
 57        /// </summary>
 58        [JsonProperty(PropertyName = "displayText")]
 3259        public string DisplayText { get; private set; }
 60
 61        /// <summary>
 62        /// </summary>
 63        [JsonProperty(PropertyName = "query")]
 3264        public string Query { get; private set; }
 65
 66        /// <summary>
 67        /// Gets possible values include: 'WebSearch', 'HistorySearch',
 68        /// 'DocumentSearch', 'TagSearch', 'LocationSearch', 'CustomSearch'
 69        /// </summary>
 70        [JsonProperty(PropertyName = "searchKind")]
 3271        public string SearchKind { get; private set; }
 72
 73    }
 74}