| | 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.EntitySearch.Models |
| | 8 | | { |
| | 9 | | using Newtonsoft.Json; |
| | 10 | | using System.Collections; |
| | 11 | | using System.Collections.Generic; |
| | 12 | | using System.Linq; |
| | 13 | |
|
| | 14 | | public partial class Hotel : LodgingBusiness |
| | 15 | | { |
| | 16 | | /// <summary> |
| | 17 | | /// Initializes a new instance of the Hotel class. |
| | 18 | | /// </summary> |
| 0 | 19 | | public Hotel() |
| | 20 | | { |
| | 21 | | CustomInit(); |
| 0 | 22 | | } |
| | 23 | |
|
| | 24 | | /// <summary> |
| | 25 | | /// Initializes a new instance of the Hotel class. |
| | 26 | | /// </summary> |
| | 27 | | /// <param name="id">A String identifier.</param> |
| | 28 | | /// <param name="contractualRules">A list of rules that you must adhere |
| | 29 | | /// to if you display the item.</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="description">A short description of the item.</param> |
| | 37 | | /// <param name="entityPresentationInfo">Additional information about |
| | 38 | | /// the entity such as hints that you can use to determine the entity's |
| | 39 | | /// type. To determine the entity's type, use the entityScenario and |
| | 40 | | /// entityTypeHint fields.</param> |
| | 41 | | /// <param name="bingId">An ID that uniquely identifies this |
| | 42 | | /// item.</param> |
| | 43 | | /// <param name="address">The postal address of where the entity is |
| | 44 | | /// located</param> |
| | 45 | | /// <param name="telephone">The entity's telephone number</param> |
| | 46 | | /// <param name="priceRange">$$.</param> |
| | 47 | | public Hotel(string id = default(string), IList<ContractualRulesContractualRule> contractualRules = default(ILis |
| 0 | 48 | | : base(id, contractualRules, webSearchUrl, name, url, image, description, entityPresentationInfo, bingId, ad |
| | 49 | | { |
| 0 | 50 | | HotelClass = hotelClass; |
| 0 | 51 | | Amenities = amenities; |
| | 52 | | CustomInit(); |
| 0 | 53 | | } |
| | 54 | |
|
| | 55 | | /// <summary> |
| | 56 | | /// An initialization method that performs custom operations like setting defaults |
| | 57 | | /// </summary> |
| | 58 | | partial void CustomInit(); |
| | 59 | |
|
| | 60 | | /// <summary> |
| | 61 | | /// </summary> |
| | 62 | | [JsonProperty(PropertyName = "hotelClass")] |
| 0 | 63 | | public string HotelClass { get; private set; } |
| | 64 | |
|
| | 65 | | /// <summary> |
| | 66 | | /// </summary> |
| | 67 | | [JsonProperty(PropertyName = "amenities")] |
| 0 | 68 | | public IList<string> Amenities { get; private set; } |
| | 69 | |
|
| | 70 | | /// <summary> |
| | 71 | | /// Validate the object. |
| | 72 | | /// </summary> |
| | 73 | | /// <exception cref="Rest.ValidationException"> |
| | 74 | | /// Thrown if validation fails |
| | 75 | | /// </exception> |
| | 76 | | public override void Validate() |
| | 77 | | { |
| 0 | 78 | | base.Validate(); |
| 0 | 79 | | } |
| | 80 | | } |
| | 81 | | } |