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