| | | 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.CustomImageSearch.Models |
| | | 8 | | { |
| | | 9 | | using Newtonsoft.Json; |
| | | 10 | | using System.Linq; |
| | | 11 | | |
| | | 12 | | /// <summary> |
| | | 13 | | /// Defines a thing. |
| | | 14 | | /// </summary> |
| | | 15 | | public partial class Thing : Response |
| | | 16 | | { |
| | | 17 | | /// <summary> |
| | | 18 | | /// Initializes a new instance of the Thing class. |
| | | 19 | | /// </summary> |
| | 140 | 20 | | public Thing() |
| | | 21 | | { |
| | | 22 | | CustomInit(); |
| | 140 | 23 | | } |
| | | 24 | | |
| | | 25 | | /// <summary> |
| | | 26 | | /// Initializes a new instance of the Thing class. |
| | | 27 | | /// </summary> |
| | | 28 | | /// <param name="id">A String identifier.</param> |
| | | 29 | | /// <param name="readLink">The URL that returns this resource.</param> |
| | | 30 | | /// <param name="webSearchUrl">The URL To Bing's search result for this |
| | | 31 | | /// item.</param> |
| | | 32 | | /// <param name="name">The name of the thing represented by this |
| | | 33 | | /// object.</param> |
| | | 34 | | /// <param name="url">The URL to get more information about the thing |
| | | 35 | | /// represented by this object.</param> |
| | | 36 | | /// <param name="image">An image of the item.</param> |
| | | 37 | | /// <param name="description">A short description of the item.</param> |
| | | 38 | | /// <param name="alternateName">An alias for the item</param> |
| | | 39 | | /// <param name="bingId">An ID that uniquely identifies this |
| | | 40 | | /// item.</param> |
| | | 41 | | public Thing(string id = default(string), string readLink = default(string), string webSearchUrl = default(strin |
| | 0 | 42 | | : base(id, readLink, webSearchUrl) |
| | | 43 | | { |
| | 0 | 44 | | Name = name; |
| | 0 | 45 | | Url = url; |
| | 0 | 46 | | Image = image; |
| | 0 | 47 | | Description = description; |
| | 0 | 48 | | AlternateName = alternateName; |
| | 0 | 49 | | BingId = bingId; |
| | | 50 | | CustomInit(); |
| | 0 | 51 | | } |
| | | 52 | | |
| | | 53 | | /// <summary> |
| | | 54 | | /// An initialization method that performs custom operations like setting defaults |
| | | 55 | | /// </summary> |
| | | 56 | | partial void CustomInit(); |
| | | 57 | | |
| | | 58 | | /// <summary> |
| | | 59 | | /// Gets the name of the thing represented by this object. |
| | | 60 | | /// </summary> |
| | | 61 | | [JsonProperty(PropertyName = "name")] |
| | 0 | 62 | | public string Name { get; private set; } |
| | | 63 | | |
| | | 64 | | /// <summary> |
| | | 65 | | /// Gets the URL to get more information about the thing represented by |
| | | 66 | | /// this object. |
| | | 67 | | /// </summary> |
| | | 68 | | [JsonProperty(PropertyName = "url")] |
| | 0 | 69 | | public string Url { get; private set; } |
| | | 70 | | |
| | | 71 | | /// <summary> |
| | | 72 | | /// Gets an image of the item. |
| | | 73 | | /// </summary> |
| | | 74 | | [JsonProperty(PropertyName = "image")] |
| | 0 | 75 | | public ImageObject Image { get; private set; } |
| | | 76 | | |
| | | 77 | | /// <summary> |
| | | 78 | | /// Gets a short description of the item. |
| | | 79 | | /// </summary> |
| | | 80 | | [JsonProperty(PropertyName = "description")] |
| | 0 | 81 | | public string Description { get; private set; } |
| | | 82 | | |
| | | 83 | | /// <summary> |
| | | 84 | | /// Gets an alias for the item |
| | | 85 | | /// </summary> |
| | | 86 | | [JsonProperty(PropertyName = "alternateName")] |
| | 0 | 87 | | public string AlternateName { get; private set; } |
| | | 88 | | |
| | | 89 | | /// <summary> |
| | | 90 | | /// Gets an ID that uniquely identifies this item. |
| | | 91 | | /// </summary> |
| | | 92 | | [JsonProperty(PropertyName = "bingId")] |
| | 0 | 93 | | public string BingId { get; private set; } |
| | | 94 | | |
| | | 95 | | } |
| | | 96 | | } |