| | 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 recipe action. |
| | 16 | | /// </summary> |
| | 17 | | public partial class ImageRecipesAction : ImageAction |
| | 18 | | { |
| | 19 | | /// <summary> |
| | 20 | | /// Initializes a new instance of the ImageRecipesAction class. |
| | 21 | | /// </summary> |
| 0 | 22 | | public ImageRecipesAction() |
| | 23 | | { |
| | 24 | | CustomInit(); |
| 0 | 25 | | } |
| | 26 | |
|
| | 27 | | /// <summary> |
| | 28 | | /// Initializes a new instance of the ImageRecipesAction 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 | | /// <param name="actionType">A string representing the type of |
| | 59 | | /// action.</param> |
| | 60 | | /// <param name="data">A list of recipes related to the image.</param> |
| | 61 | | public ImageRecipesAction(string id = default(string), string readLink = default(string), string webSearchUrl = |
| 0 | 62 | | : base(id, readLink, webSearchUrl, name, url, image, description, alternateName, bingId, thumbnailUrl, provi |
| | 63 | | { |
| 0 | 64 | | Data = data; |
| | 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 a list of recipes related to the image. |
| | 75 | | /// </summary> |
| | 76 | | [JsonProperty(PropertyName = "data")] |
| 0 | 77 | | public RecipesModule Data { get; private set; } |
| | 78 | |
|
| | 79 | | } |
| | 80 | | } |