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