/// <summary>
 /// Initializes a new instance of the <see cref="RailStationResponse" /> class.
 /// </summary>
 /// <param name="Id">The ID of this station, as provided in the request (required).</param>
 /// <param name="Type">The type of code to which this station refers. Some codes represent agglomeration of multiple stations, whereas others represent an individual station. Possible values are AGGLOMERATION and STATION. (required).</param>
 /// <param name="Name">The name of this station. (required).</param>
 /// <param name="ShortName">The shortened name of this station (20 characters max) which may be used in certain cases. (required).</param>
 /// <param name="Country">The &lt;a href&#x3D;\&quot;http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2\&quot;&gt;ISO 3166-1 alpha-2 country code&lt;/a&gt; in which this station can be found. (required).</param>
 /// <param name="Location">This stations&#39;s approximate geolocation.  (required).</param>
 /// <param name="Traffic">An indication of the level of Intercity traffic passing through this station. (required).</param>
 public RailStationResponse(string Id = default(string), string Type = default(string), string Name = default(string), string ShortName = default(string), string Country = default(string), Geolocation Location = default(Geolocation), string Traffic = default(string))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for RailStationResponse and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "Type" is required (not null)
     if (Type == null)
     {
         throw new InvalidDataException("Type is a required property for RailStationResponse and cannot be null");
     }
     else
     {
         this.Type = Type;
     }
     // to ensure "Name" is required (not null)
     if (Name == null)
     {
         throw new InvalidDataException("Name is a required property for RailStationResponse and cannot be null");
     }
     else
     {
         this.Name = Name;
     }
     // to ensure "ShortName" is required (not null)
     if (ShortName == null)
     {
         throw new InvalidDataException("ShortName is a required property for RailStationResponse and cannot be null");
     }
     else
     {
         this.ShortName = ShortName;
     }
     // to ensure "Country" is required (not null)
     if (Country == null)
     {
         throw new InvalidDataException("Country is a required property for RailStationResponse and cannot be null");
     }
     else
     {
         this.Country = Country;
     }
     // to ensure "Location" is required (not null)
     if (Location == null)
     {
         throw new InvalidDataException("Location is a required property for RailStationResponse and cannot be null");
     }
     else
     {
         this.Location = Location;
     }
     // to ensure "Traffic" is required (not null)
     if (Traffic == null)
     {
         throw new InvalidDataException("Traffic is a required property for RailStationResponse and cannot be null");
     }
     else
     {
         this.Traffic = Traffic;
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="HotelPropertyResponse" /> class.
 /// </summary>
 /// <param name="PropertyCode">The 8 character property code of this given hotel. The first 2 characters of this code are the chain code that can be specified in the input. The remaining elements are proprietary to each hotel chain. (required).</param>
 /// <param name="PropertyName">The name of this hotel. (required).</param>
 /// <param name="Location">Location (required).</param>
 /// <param name="Address">Address.</param>
 /// <param name="TotalPrice">The lowest price of a stay, from the given check in date to the given check out date. (required).</param>
 /// <param name="MinDailyRate">The lowest price per day that the hotel offers between the given check-in and check-out dates. Extra taxes may apply to this rate. (required).</param>
 /// <param name="Contacts">An array of contact objects to tell the user how to contact the hotel. Typically includes a phone and fax number.</param>
 /// <param name="Amenities">An array of amenity objects to the user what facilities this hotel might provide, such as a pool or parking.  If this array is empty, it does not necessarily mean that there are no amenities available at this hotel, it could also mean that the hotel does not list their amenities in our search! .</param>
 /// <param name="Awards">An array of hotel award objects to give the user an expectation of the service quality at this hotel. This can be used to indicate, for example, the star rating of a hotel. If this array is empty, it does not necessarily mean that the hotel has no awards, it could simply mean that they didn&#39;t tell us about them!.</param>
 /// <param name="Images">A selection of image objects, showing pictures of the hotel building, the entrance or some rooms, to give an indication of what to expect at this hotel. Note that redistribution of images outside Amadeus products requires licensing from our image providers: Leonardo and Ice Portal. Thus image links are returned for whitelisted Amadeus users only..</param>
 /// <param name="Rooms">Information on currently available rooms at this hotel..</param>
 /// <param name="MoreRoomsAtThisHotel">Provides a ready-to-use link to make a follow up request to find more available rooms at this hotel.</param>
 public HotelPropertyResponse(string PropertyCode = default(string), string PropertyName = default(string), Geolocation Location = default(Geolocation), Address Address = default(Address), Amount TotalPrice = default(Amount), Amount MinDailyRate = default(Amount), List <Contact> Contacts = default(List <Contact>), List <Amenity> Amenities = default(List <Amenity>), List <Award> Awards = default(List <Award>), List <Image> Images = default(List <Image>), List <HotelRoom> Rooms = default(List <HotelRoom>), Link MoreRoomsAtThisHotel = default(Link))
 {
     // to ensure "PropertyCode" is required (not null)
     if (PropertyCode == null)
     {
         throw new InvalidDataException("PropertyCode is a required property for HotelPropertyResponse and cannot be null");
     }
     else
     {
         this.PropertyCode = PropertyCode;
     }
     // to ensure "PropertyName" is required (not null)
     if (PropertyName == null)
     {
         throw new InvalidDataException("PropertyName is a required property for HotelPropertyResponse and cannot be null");
     }
     else
     {
         this.PropertyName = PropertyName;
     }
     // to ensure "Location" is required (not null)
     if (Location == null)
     {
         throw new InvalidDataException("Location is a required property for HotelPropertyResponse and cannot be null");
     }
     else
     {
         this.Location = Location;
     }
     // to ensure "TotalPrice" is required (not null)
     if (TotalPrice == null)
     {
         throw new InvalidDataException("TotalPrice is a required property for HotelPropertyResponse and cannot be null");
     }
     else
     {
         this.TotalPrice = TotalPrice;
     }
     // to ensure "MinDailyRate" is required (not null)
     if (MinDailyRate == null)
     {
         throw new InvalidDataException("MinDailyRate is a required property for HotelPropertyResponse and cannot be null");
     }
     else
     {
         this.MinDailyRate = MinDailyRate;
     }
     this.Address              = Address;
     this.Contacts             = Contacts;
     this.Amenities            = Amenities;
     this.Awards               = Awards;
     this.Images               = Images;
     this.Rooms                = Rooms;
     this.MoreRoomsAtThisHotel = MoreRoomsAtThisHotel;
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PointOfInterestResult" /> class.
 /// </summary>
 /// <param name="Title">Display name of a given point of interest (required).</param>
 /// <param name="MainImage">A link to an image of the given location (required).</param>
 /// <param name="Location">Location (required).</param>
 /// <param name="Grades">Grades.</param>
 /// <param name="Categories">Array of descriptions indicating what type of point of interest this is. You can filter the results to include only certain categories of point of interest using the category input parameter. (required).</param>
 /// <param name="Details">Details.</param>
 /// <param name="ContextualImages">Images taken at this point of interest. Note that these images might have nothing to do with the point itself, particularly if you have enabled the social_media parameter.</param>
 /// <param name="GeonameId">The GeonamesID of this point of interest, if available.</param>
 /// <param name="WalkTime">Time in minutes that it takes to walk from the searched coordinates to this Point of Interest.</param>
 public PointOfInterestResult(string Title = default(string), string MainImage = default(string), Geolocation Location = default(Geolocation), PointOfInterestResultGrades Grades = default(PointOfInterestResultGrades), List <string> Categories = default(List <string>), PointOfInterestDetails Details = default(PointOfInterestDetails), List <ImageSize> ContextualImages = default(List <ImageSize>), int?GeonameId = default(int?), decimal?WalkTime = default(decimal?))
 {
     // to ensure "Title" is required (not null)
     if (Title == null)
     {
         throw new InvalidDataException("Title is a required property for PointOfInterestResult and cannot be null");
     }
     else
     {
         this.Title = Title;
     }
     // to ensure "MainImage" is required (not null)
     if (MainImage == null)
     {
         throw new InvalidDataException("MainImage is a required property for PointOfInterestResult and cannot be null");
     }
     else
     {
         this.MainImage = MainImage;
     }
     // to ensure "Location" is required (not null)
     if (Location == null)
     {
         throw new InvalidDataException("Location is a required property for PointOfInterestResult and cannot be null");
     }
     else
     {
         this.Location = Location;
     }
     // to ensure "Categories" is required (not null)
     if (Categories == null)
     {
         throw new InvalidDataException("Categories is a required property for PointOfInterestResult and cannot be null");
     }
     else
     {
         this.Categories = Categories;
     }
     this.Grades           = Grades;
     this.Details          = Details;
     this.ContextualImages = ContextualImages;
     this.GeonameId        = GeonameId;
     this.WalkTime         = WalkTime;
 }
Exemple #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PointOfInterestCity" /> class.
 /// </summary>
 /// <param name="Name">The name of the location that was searched for (required).</param>
 /// <param name="GeonameId">The Geonames ID of the location that was searched for.</param>
 /// <param name="Location">Location (required).</param>
 /// <param name="TotalPointsOfInterest">The total number of points_of_interest that YapQ has indexed for this city (required).</param>
 public PointOfInterestCity(string Name = default(string), string GeonameId = default(string), Geolocation Location = default(Geolocation), int?TotalPointsOfInterest = default(int?))
 {
     // to ensure "Name" is required (not null)
     if (Name == null)
     {
         throw new InvalidDataException("Name is a required property for PointOfInterestCity and cannot be null");
     }
     else
     {
         this.Name = Name;
     }
     // to ensure "Location" is required (not null)
     if (Location == null)
     {
         throw new InvalidDataException("Location is a required property for PointOfInterestCity and cannot be null");
     }
     else
     {
         this.Location = Location;
     }
     // to ensure "TotalPointsOfInterest" is required (not null)
     if (TotalPointsOfInterest == null)
     {
         throw new InvalidDataException("TotalPointsOfInterest is a required property for PointOfInterestCity and cannot be null");
     }
     else
     {
         this.TotalPointsOfInterest = TotalPointsOfInterest;
     }
     this.GeonameId = GeonameId;
 }
Exemple #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CityInformation" /> class.
 /// </summary>
 /// <param name="Code">The &lt;a href&#x3D;\&quot;https://en.wikipedia.org/wiki/International_Air_Transport_Association_airport_code\&quot;&gt;IATA code&lt;/a&gt; of this city. If you intend to make a flight search from the output of this call, I recommend using this as your input parameter as it generally gives the best results. (required).</param>
 /// <param name="GeonamesID">The ID of this city in the open-sourced Geonames DB (required).</param>
 /// <param name="Name">The name of this city, in English (required).</param>
 /// <param name="State">The state code of this city, if applicable.</param>
 /// <param name="Country">The &lt;a href&#x3D;\&quot;http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2\&quot;&gt;ISO 3166-1 alpha-2 country code&lt;/a&gt; in which this city can be found. (required).</param>
 /// <param name="Location">This city&#39;s approximate geolocation. The exact center of a city is often not an exact location, so be aware that this might not be exact. (required).</param>
 /// <param name="Timezone">The &lt;a href&#x3D;\&quot;http://en.wikipedia.org/wiki/List_of_tz_database_time_zones\&quot;&gt;Olson format&lt;/a&gt; name of the timezone in which this city is located (required).</param>
 /// <param name="Currency">The ISO-4217 currency code of the official local currency at this location.</param>
 public CityInformation(string Code = default(string), string GeonamesID = default(string), string Name = default(string), string State = default(string), string Country = default(string), Geolocation Location = default(Geolocation), string Timezone = default(string), string Currency = default(string))
 {
     // to ensure "Code" is required (not null)
     if (Code == null)
     {
         throw new InvalidDataException("Code is a required property for CityInformation and cannot be null");
     }
     else
     {
         this.Code = Code;
     }
     // to ensure "GeonamesID" is required (not null)
     if (GeonamesID == null)
     {
         throw new InvalidDataException("GeonamesID is a required property for CityInformation and cannot be null");
     }
     else
     {
         this.GeonamesID = GeonamesID;
     }
     // to ensure "Name" is required (not null)
     if (Name == null)
     {
         throw new InvalidDataException("Name is a required property for CityInformation and cannot be null");
     }
     else
     {
         this.Name = Name;
     }
     // to ensure "Country" is required (not null)
     if (Country == null)
     {
         throw new InvalidDataException("Country is a required property for CityInformation and cannot be null");
     }
     else
     {
         this.Country = Country;
     }
     // to ensure "Location" is required (not null)
     if (Location == null)
     {
         throw new InvalidDataException("Location is a required property for CityInformation and cannot be null");
     }
     else
     {
         this.Location = Location;
     }
     // to ensure "Timezone" is required (not null)
     if (Timezone == null)
     {
         throw new InvalidDataException("Timezone is a required property for CityInformation and cannot be null");
     }
     else
     {
         this.Timezone = Timezone;
     }
     this.State    = State;
     this.Currency = Currency;
 }
Exemple #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NearestAirport" /> class.
 /// </summary>
 /// <param name="Airport">The 3 letter IATA airport code of this given airport. You can use this as an input parameter for a low-fare flight search, to get more specific results than the city code, but inspiration search works best using the city code. (required).</param>
 /// <param name="AirportName">The name of this airport, in UTF-8 format (required).</param>
 /// <param name="City">The three letter &lt;a href&#x3D;\&quot;https://en.wikipedia.org/wiki/International_Air_Transport_Association_airport_code\&quot;&gt;IATA code&lt;/a&gt; of the city of the city in which this airport is located. (required).</param>
 /// <param name="CityName">The English name of the city in which this airport is located (required).</param>
 /// <param name="State">The state code of this city, if applicable.</param>
 /// <param name="Distance">The distance in km from the point specified in the query, to this location (required).</param>
 /// <param name="Location">  An object containing the longitude and latitude of the given airport. (required).</param>
 /// <param name="AircraftMovements">The annual number of aircraft movements at that airport..</param>
 /// <param name="Timezone">The &lt;a href&#x3D;\&quot;http://en.wikipedia.org/wiki/List_of_tz_database_time_zones\&quot;&gt;Olson format&lt;/a&gt; name of the timezone in which this airport is located (required).</param>
 public NearestAirport(string Airport = default(string), string AirportName = default(string), string City = default(string), string CityName = default(string), string State = default(string), decimal?Distance = default(decimal?), Geolocation Location = default(Geolocation), int?AircraftMovements = default(int?), string Timezone = default(string))
 {
     // to ensure "Airport" is required (not null)
     if (Airport == null)
     {
         throw new InvalidDataException("Airport is a required property for NearestAirport and cannot be null");
     }
     else
     {
         this.Airport = Airport;
     }
     // to ensure "AirportName" is required (not null)
     if (AirportName == null)
     {
         throw new InvalidDataException("AirportName is a required property for NearestAirport and cannot be null");
     }
     else
     {
         this.AirportName = AirportName;
     }
     // to ensure "City" is required (not null)
     if (City == null)
     {
         throw new InvalidDataException("City is a required property for NearestAirport and cannot be null");
     }
     else
     {
         this.City = City;
     }
     // to ensure "CityName" is required (not null)
     if (CityName == null)
     {
         throw new InvalidDataException("CityName is a required property for NearestAirport and cannot be null");
     }
     else
     {
         this.CityName = CityName;
     }
     // to ensure "Distance" is required (not null)
     if (Distance == null)
     {
         throw new InvalidDataException("Distance is a required property for NearestAirport and cannot be null");
     }
     else
     {
         this.Distance = Distance;
     }
     // to ensure "Location" is required (not null)
     if (Location == null)
     {
         throw new InvalidDataException("Location is a required property for NearestAirport and cannot be null");
     }
     else
     {
         this.Location = Location;
     }
     // to ensure "Timezone" is required (not null)
     if (Timezone == null)
     {
         throw new InvalidDataException("Timezone is a required property for NearestAirport and cannot be null");
     }
     else
     {
         this.Timezone = Timezone;
     }
     this.State             = State;
     this.AircraftMovements = AircraftMovements;
 }
Exemple #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AirportInformation" /> class.
 /// </summary>
 /// <param name="Code">The 3 letter IATA airport code of this given airport. You can use this as an input parameter for a low-fare flight search, to get more specific results than the city code, but inspiration search works best using the city code. (required).</param>
 /// <param name="Name">The name of this airport, in UTF-8 format (required).</param>
 /// <param name="CityCode">The three letter &lt;a href&#x3D;\&quot;https://en.wikipedia.org/wiki/International_Air_Transport_Association_airport_code\&quot;&gt;IATA code&lt;/a&gt; of the city of the city in which this airport is located. (required).</param>
 /// <param name="CityName">The English name of the city in which this airport is located (required).</param>
 /// <param name="State">The state code of this city, if applicable.</param>
 /// <param name="Country">The &lt;a href&#x3D;\&quot;http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2\&quot;&gt;ISO 3166-1 alpha-2 country code&lt;/a&gt; in which this city can be found. (required).</param>
 /// <param name="Location">  An object containing the longitude and latitude of the given airport. (required).</param>
 /// <param name="AircraftMovements">The annual number of aircraft movements at that airport..</param>
 /// <param name="Timezone">The &lt;a href&#x3D;\&quot;http://en.wikipedia.org/wiki/List_of_tz_database_time_zones\&quot;&gt;Olson format&lt;/a&gt; name of the timezone in which this airport is located (required).</param>
 public AirportInformation(string Code = default(string), string Name = default(string), string CityCode = default(string), string CityName = default(string), string State = default(string), string Country = default(string), Geolocation Location = default(Geolocation), int?AircraftMovements = default(int?), string Timezone = default(string))
 {
     // to ensure "Code" is required (not null)
     if (Code == null)
     {
         throw new InvalidDataException("Code is a required property for AirportInformation and cannot be null");
     }
     else
     {
         this.Code = Code;
     }
     // to ensure "Name" is required (not null)
     if (Name == null)
     {
         throw new InvalidDataException("Name is a required property for AirportInformation and cannot be null");
     }
     else
     {
         this.Name = Name;
     }
     // to ensure "CityCode" is required (not null)
     if (CityCode == null)
     {
         throw new InvalidDataException("CityCode is a required property for AirportInformation and cannot be null");
     }
     else
     {
         this.CityCode = CityCode;
     }
     // to ensure "CityName" is required (not null)
     if (CityName == null)
     {
         throw new InvalidDataException("CityName is a required property for AirportInformation and cannot be null");
     }
     else
     {
         this.CityName = CityName;
     }
     // to ensure "Country" is required (not null)
     if (Country == null)
     {
         throw new InvalidDataException("Country is a required property for AirportInformation and cannot be null");
     }
     else
     {
         this.Country = Country;
     }
     // to ensure "Location" is required (not null)
     if (Location == null)
     {
         throw new InvalidDataException("Location is a required property for AirportInformation and cannot be null");
     }
     else
     {
         this.Location = Location;
     }
     // to ensure "Timezone" is required (not null)
     if (Timezone == null)
     {
         throw new InvalidDataException("Timezone is a required property for AirportInformation and cannot be null");
     }
     else
     {
         this.Timezone = Timezone;
     }
     this.State             = State;
     this.AircraftMovements = AircraftMovements;
 }