コード例 #1
0
 /// <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);
 }
コード例 #2
0
 /// <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);
 }
コード例 #3
0
ファイル: Amadeus.cs プロジェクト: afonsoft/Afonsoft.Amadeus
        /// <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);
        }