| | 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.VisualSearch.Models |
| | 8 | | { |
| | 9 | | using Newtonsoft.Json; |
| | 10 | | using System.Collections; |
| | 11 | | using System.Collections.Generic; |
| | 12 | | using System.Linq; |
| | 13 | |
|
| | 14 | | /// <summary> |
| | 15 | | /// Defines an action. |
| | 16 | | /// </summary> |
| | 17 | | public partial class Action : CreativeWork |
| | 18 | | { |
| | 19 | | /// <summary> |
| | 20 | | /// Initializes a new instance of the Action class. |
| | 21 | | /// </summary> |
| 64 | 22 | | public Action() |
| | 23 | | { |
| | 24 | | CustomInit(); |
| 64 | 25 | | } |
| | 26 | |
|
| | 27 | | /// <summary> |
| | 28 | | /// Initializes a new instance of the Action class. |
| | 29 | | /// </summary> |
| | 30 | | /// <param name="id">A String identifier.</param> |
| | 31 | | /// <param name="readLink">The URL that returns this resource. To use |
| | 32 | | /// the URL, append query parameters as appropriate and include the |
| | 33 | | /// Ocp-Apim-Subscription-Key header.</param> |
| | 34 | | /// <param name="webSearchUrl">The URL to Bing's search result for this |
| | 35 | | /// item.</param> |
| | 36 | | /// <param name="name">The name of the thing represented by this |
| | 37 | | /// object.</param> |
| | 38 | | /// <param name="url">The URL to get more information about the thing |
| | 39 | | /// represented by this object.</param> |
| | 40 | | /// <param name="image">An image of the item.</param> |
| | 41 | | /// <param name="description">A short description of the item.</param> |
| | 42 | | /// <param name="alternateName">An alias for the item.</param> |
| | 43 | | /// <param name="bingId">An ID that uniquely identifies this |
| | 44 | | /// item.</param> |
| | 45 | | /// <param name="thumbnailUrl">The URL to a thumbnail of the |
| | 46 | | /// item.</param> |
| | 47 | | /// <param name="provider">The source of the creative work.</param> |
| | 48 | | /// <param name="datePublished">The date on which the CreativeWork was |
| | 49 | | /// published.</param> |
| | 50 | | /// <param name="text">Text content of this creative work.</param> |
| | 51 | | /// <param name="result">The result produced in the action.</param> |
| | 52 | | /// <param name="displayName">A display name for the action.</param> |
| | 53 | | /// <param name="isTopAction">A Boolean representing whether this |
| | 54 | | /// result is the top action.</param> |
| | 55 | | /// <param name="serviceUrl">Use this URL to get additional data to |
| | 56 | | /// determine how to take the appropriate action. For example, the |
| | 57 | | /// serviceUrl might return JSON along with an image URL.</param> |
| | 58 | | public Action(string id = default(string), string readLink = default(string), string webSearchUrl = default(stri |
| 0 | 59 | | : base(id, readLink, webSearchUrl, name, url, image, description, alternateName, bingId, thumbnailUrl, provi |
| | 60 | | { |
| 0 | 61 | | Result = result; |
| 0 | 62 | | DisplayName = displayName; |
| 0 | 63 | | IsTopAction = isTopAction; |
| 0 | 64 | | ServiceUrl = serviceUrl; |
| | 65 | | CustomInit(); |
| 0 | 66 | | } |
| | 67 | |
|
| | 68 | | /// <summary> |
| | 69 | | /// An initialization method that performs custom operations like setting defaults |
| | 70 | | /// </summary> |
| | 71 | | partial void CustomInit(); |
| | 72 | |
|
| | 73 | | /// <summary> |
| | 74 | | /// Gets the result produced in the action. |
| | 75 | | /// </summary> |
| | 76 | | [JsonProperty(PropertyName = "result")] |
| 0 | 77 | | public IList<Thing> Result { get; private set; } |
| | 78 | |
|
| | 79 | | /// <summary> |
| | 80 | | /// Gets a display name for the action. |
| | 81 | | /// </summary> |
| | 82 | | [JsonProperty(PropertyName = "displayName")] |
| 0 | 83 | | public string DisplayName { get; private set; } |
| | 84 | |
|
| | 85 | | /// <summary> |
| | 86 | | /// Gets a Boolean representing whether this result is the top action. |
| | 87 | | /// </summary> |
| | 88 | | [JsonProperty(PropertyName = "isTopAction")] |
| 0 | 89 | | public bool? IsTopAction { get; private set; } |
| | 90 | |
|
| | 91 | | /// <summary> |
| | 92 | | /// Gets use this URL to get additional data to determine how to take |
| | 93 | | /// the appropriate action. For example, the serviceUrl might return |
| | 94 | | /// JSON along with an image URL. |
| | 95 | | /// </summary> |
| | 96 | | [JsonProperty(PropertyName = "serviceUrl")] |
| 0 | 97 | | public string ServiceUrl { get; private set; } |
| | 98 | |
|
| | 99 | | } |
| | 100 | | } |