| | 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.ImageSearch.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.</param> |
| | 32 | | /// <param name="webSearchUrl">The URL To Bing's search result for this |
| | 33 | | /// item.</param> |
| | 34 | | /// <param name="name">The name of the thing represented by this |
| | 35 | | /// object.</param> |
| | 36 | | /// <param name="url">The URL to get more information about the thing |
| | 37 | | /// represented by this object.</param> |
| | 38 | | /// <param name="image">An image of the item.</param> |
| | 39 | | /// <param name="description">A short description of the item.</param> |
| | 40 | | /// <param name="alternateName">An alias for the item</param> |
| | 41 | | /// <param name="bingId">An ID that uniquely identifies this |
| | 42 | | /// item.</param> |
| | 43 | | /// <param name="thumbnailUrl">The URL to a thumbnail of the |
| | 44 | | /// item.</param> |
| | 45 | | /// <param name="provider">The source of the creative work.</param> |
| | 46 | | /// <param name="datePublished">The date on which the CreativeWork was |
| | 47 | | /// published.</param> |
| | 48 | | /// <param name="text">Text content of this creative work</param> |
| | 49 | | /// <param name="cookTime">The amount of time the food takes to cook. |
| | 50 | | /// For example, PT25M. For information about the time format, see |
| | 51 | | /// http://en.wikipedia.org/wiki/ISO_8601#Durations.</param> |
| | 52 | | /// <param name="prepTime">The amount of time required to prepare the |
| | 53 | | /// ingredients. For example, PT15M. For information about the time |
| | 54 | | /// format, see |
| | 55 | | /// http://en.wikipedia.org/wiki/ISO_8601#Durations.</param> |
| | 56 | | /// <param name="totalTime">The total amount of time it takes to |
| | 57 | | /// prepare and cook the recipe. For example, PT45M. For information |
| | 58 | | /// about the time format, see |
| | 59 | | /// http://en.wikipedia.org/wiki/ISO_8601#Durations.</param> |
| | 60 | | public Recipe(string id = default(string), string readLink = default(string), string webSearchUrl = default(stri |
| 0 | 61 | | : base(id, readLink, webSearchUrl, name, url, image, description, alternateName, bingId, thumbnailUrl, provi |
| | 62 | | { |
| 0 | 63 | | CookTime = cookTime; |
| 0 | 64 | | PrepTime = prepTime; |
| 0 | 65 | | TotalTime = totalTime; |
| | 66 | | CustomInit(); |
| 0 | 67 | | } |
| | 68 | |
|
| | 69 | | /// <summary> |
| | 70 | | /// An initialization method that performs custom operations like setting defaults |
| | 71 | | /// </summary> |
| | 72 | | partial void CustomInit(); |
| | 73 | |
|
| | 74 | | /// <summary> |
| | 75 | | /// Gets the amount of time the food takes to cook. For example, PT25M. |
| | 76 | | /// For information about the time format, see |
| | 77 | | /// http://en.wikipedia.org/wiki/ISO_8601#Durations. |
| | 78 | | /// </summary> |
| | 79 | | [JsonProperty(PropertyName = "cookTime")] |
| 0 | 80 | | public string CookTime { get; private set; } |
| | 81 | |
|
| | 82 | | /// <summary> |
| | 83 | | /// Gets the amount of time required to prepare the ingredients. For |
| | 84 | | /// example, PT15M. For information about the time format, see |
| | 85 | | /// http://en.wikipedia.org/wiki/ISO_8601#Durations. |
| | 86 | | /// </summary> |
| | 87 | | [JsonProperty(PropertyName = "prepTime")] |
| 0 | 88 | | public string PrepTime { get; private set; } |
| | 89 | |
|
| | 90 | | /// <summary> |
| | 91 | | /// Gets the total amount of time it takes to prepare and cook the |
| | 92 | | /// recipe. For example, PT45M. For information about the time format, |
| | 93 | | /// see http://en.wikipedia.org/wiki/ISO_8601#Durations. |
| | 94 | | /// </summary> |
| | 95 | | [JsonProperty(PropertyName = "totalTime")] |
| 0 | 96 | | public string TotalTime { get; private set; } |
| | 97 | |
|
| | 98 | | } |
| | 99 | | } |