| | | 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 | | |
| | | 7 | | namespace 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> |
| | 16 | 19 | | public SearchAction() |
| | | 20 | | { |
| | | 21 | | CustomInit(); |
| | 16 | 22 | | } |
| | | 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 |
| | 0 | 43 | | : base(id, readLink, webSearchUrl, potentialAction, immediateAction, preferredClickthroughUrl, adaptiveCard, |
| | | 44 | | { |
| | 0 | 45 | | DisplayText = displayText; |
| | 0 | 46 | | Query = query; |
| | 0 | 47 | | SearchKind = searchKind; |
| | | 48 | | CustomInit(); |
| | 0 | 49 | | } |
| | | 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")] |
| | 32 | 59 | | public string DisplayText { get; private set; } |
| | | 60 | | |
| | | 61 | | /// <summary> |
| | | 62 | | /// </summary> |
| | | 63 | | [JsonProperty(PropertyName = "query")] |
| | 32 | 64 | | 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")] |
| | 32 | 71 | | public string SearchKind { get; private set; } |
| | | 72 | | |
| | | 73 | | } |
| | | 74 | | } |