/// <summary> /// Constructor. /// @hide /// </summary> public ReferenceData(Amadeus client) { this.client = client; this.Urls = new Urls(client); this.Locations = new Locations(client); this.Airlines = new Airlines(client); }
/// <summary> /// Constructor. /// @hide /// </summary> public Shopping(Amadeus client) { this.client = client; this.FlightDates = new FlightDates(client); this.FlightDestinations = new FlightDestinations(client); this.FlightOffers = new FlightOffers(client); this.HotelOffers = new HotelOffers(client); this.HotelOffersByHotel = new HotelOffersByHotel(client); }
/// <summary> /// Creates a builder object initialized with the environment variables that can be used to build /// an Amadeus API com.amadeus.client. /// /// <pre> /// Amadeus amadeus = Amadeus.builder(System.getenv()).build(); /// </pre> /// </summary> /// <param name="environment"> The system environment </param> /// <returns> a Configuration object </returns> public static Configuration Builder(IDictionary <string, string> environment) { string clientId = environment["AMADEUS_CLIENT_ID"]; string clientSecret = environment["AMADEUS_CLIENT_ID"]; Configuration configuration = Amadeus.Builder(clientId, clientSecret); configuration.ParseEnvironment(environment); return(configuration); }