| | 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 a cooking recipe. |
| | 16 | | /// </summary> |
| | 17 | | public partial class Recipe : CreativeWork |
| | 18 | | { |
| | 19 | | /// <summary> |
| | 20 | | /// Initializes a new instance of the Recipe class. |
| | 21 | | /// </summary> |
| 0 | 22 | | public Recipe() |
| | 23 | | { |
| | 24 | | CustomInit(); |
| 0 | 25 | | } |
| | 26 | |
|
| | 27 | | /// <summary> |
| | 28 | | /// Initializes a new instance of the Recipe 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="cookTime">The amount of time the food takes to cook. |
| | 52 | | /// For example, PT25M. For information about the time format, see |
| | 53 | | /// http://en.wikipedia.org/wiki/ISO_8601#Durations.</param> |
| | 54 | | /// <param name="prepTime">The amount of time required to prepare the |
| | 55 | | /// ingredients. For example, PT15M. For information about the time |
| | 56 | | /// format, see |
| | 57 | | /// http://en.wikipedia.org/wiki/ISO_8601#Durations.</param> |
| | 58 | | /// <param name="totalTime">The total amount of time it takes to |
| | 59 | | /// prepare and cook the recipe. For example, PT45M. For information |
| | 60 | | /// about the time format, see |
| | 61 | | /// http://en.wikipedia.org/wiki/ISO_8601#Durations.</param> |
| | 62 | | public Recipe(string id = default(string), string readLink = default(string), string webSearchUrl = default(stri |
| 0 | 63 | | : base(id, readLink, webSearchUrl, name, url, image, description, alternateName, bingId, thumbnailUrl, provi |
| | 64 | | { |
| 0 | 65 | | CookTime = cookTime; |
| 0 | 66 | | PrepTime = prepTime; |
| 0 | 67 | | TotalTime = totalTime; |
| | 68 | | CustomInit(); |
| 0 | 69 | | } |
| | 70 | |
|
| | 71 | | /// <summary> |
| | 72 | | /// An initialization method that performs custom operations like setting defaults |
| | 73 | | /// </summary> |
| | 74 | | partial void CustomInit(); |
| | 75 | |
|
| | 76 | | /// <summary> |
| | 77 | | /// Gets the amount of time the food takes to cook. For example, PT25M. |
| | 78 | | /// For information about the time format, see |
| | 79 | | /// http://en.wikipedia.org/wiki/ISO_8601#Durations. |
| | 80 | | /// </summary> |
| | 81 | | [JsonProperty(PropertyName = "cookTime")] |
| 0 | 82 | | public string CookTime { get; private set; } |
| | 83 | |
|
| | 84 | | /// <summary> |
| | 85 | | /// Gets the amount of time required to prepare the ingredients. For |
| | 86 | | /// example, PT15M. For information about the time format, see |
| | 87 | | /// http://en.wikipedia.org/wiki/ISO_8601#Durations. |
| | 88 | | /// </summary> |
| | 89 | | [JsonProperty(PropertyName = "prepTime")] |
| 0 | 90 | | public string PrepTime { get; private set; } |
| | 91 | |
|
| | 92 | | /// <summary> |
| | 93 | | /// Gets the total amount of time it takes to prepare and cook the |
| | 94 | | /// recipe. For example, PT45M. For information about the time format, |
| | 95 | | /// see http://en.wikipedia.org/wiki/ISO_8601#Durations. |
| | 96 | | /// </summary> |
| | 97 | | [JsonProperty(PropertyName = "totalTime")] |
| 0 | 98 | | public string TotalTime { get; private set; } |
| | 99 | |
|
| | 100 | | } |
| | 101 | | } |