| | 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.LocalSearch.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> |
| 0 | 19 | | public SearchAction() |
| | 20 | | { |
| | 21 | | CustomInit(); |
| 0 | 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="name">The name of the thing represented by this |
| | 32 | | /// object.</param> |
| | 33 | | /// <param name="url">The URL to get more information about the thing |
| | 34 | | /// represented by this object.</param> |
| | 35 | | /// <param name="entityPresentationInfo">Additional information about |
| | 36 | | /// the entity such as hints that you can use to determine the entity's |
| | 37 | | /// type. To determine the entity's type, use the entityScenario and |
| | 38 | | /// entityTypeHint fields.</param> |
| | 39 | | /// <param name="thumbnailUrl">The URL to a thumbnail of the |
| | 40 | | /// item.</param> |
| | 41 | | /// <param name="about">For internal use only.</param> |
| | 42 | | /// <param name="mentions">For internal use only.</param> |
| | 43 | | /// <param name="provider">The source of the creative work.</param> |
| | 44 | | /// <param name="text">Text content of this creative work</param> |
| | 45 | | /// <param name="result">The result produced in the action.</param> |
| | 46 | | /// <param name="displayName">A display name for the action.</param> |
| | 47 | | /// <param name="isTopAction">A Boolean representing whether this |
| | 48 | | /// result is the top action.</param> |
| | 49 | | /// <param name="serviceUrl">Use this URL to get additional data to |
| | 50 | | /// determine how to take the appropriate action. For example, the |
| | 51 | | /// serviceUrl might return JSON along with an image URL.</param> |
| | 52 | | public SearchAction(string id = default(string), string readLink = default(string), string webSearchUrl = defaul |
| 0 | 53 | | : base(id, readLink, webSearchUrl, potentialAction, immediateAction, preferredClickthroughUrl, adaptiveCard, |
| | 54 | | { |
| 0 | 55 | | DisplayText = displayText; |
| 0 | 56 | | Query = query; |
| 0 | 57 | | RichContent = richContent; |
| 0 | 58 | | FormattingRuleId = formattingRuleId; |
| | 59 | | CustomInit(); |
| 0 | 60 | | } |
| | 61 | |
|
| | 62 | | /// <summary> |
| | 63 | | /// An initialization method that performs custom operations like setting defaults |
| | 64 | | /// </summary> |
| | 65 | | partial void CustomInit(); |
| | 66 | |
|
| | 67 | | /// <summary> |
| | 68 | | /// </summary> |
| | 69 | | [JsonProperty(PropertyName = "displayText")] |
| 0 | 70 | | public string DisplayText { get; private set; } |
| | 71 | |
|
| | 72 | | /// <summary> |
| | 73 | | /// </summary> |
| | 74 | | [JsonProperty(PropertyName = "query")] |
| 0 | 75 | | public string Query { get; private set; } |
| | 76 | |
|
| | 77 | | /// <summary> |
| | 78 | | /// </summary> |
| | 79 | | [JsonProperty(PropertyName = "richContent")] |
| 0 | 80 | | public IList<Answer> RichContent { get; private set; } |
| | 81 | |
|
| | 82 | | /// <summary> |
| | 83 | | /// </summary> |
| | 84 | | [JsonProperty(PropertyName = "formattingRuleId")] |
| 0 | 85 | | public string FormattingRuleId { get; private set; } |
| | 86 | |
|
| | 87 | | /// <summary> |
| | 88 | | /// Validate the object. |
| | 89 | | /// </summary> |
| | 90 | | /// <exception cref="Rest.ValidationException"> |
| | 91 | | /// Thrown if validation fails |
| | 92 | | /// </exception> |
| | 93 | | public override void Validate() |
| | 94 | | { |
| 0 | 95 | | base.Validate(); |
| 0 | 96 | | } |
| | 97 | | } |
| | 98 | | } |