コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the ReferenceData class.
 /// </summary>
 /// <param name="client">Client.</param>
 public ReferenceData(Amadeus client)
 {
     this.client    = client;
     this.urls      = new Urls(client);
     this.locations = new Locations(client);
     this.airlines  = new Airlines(client);
 }
コード例 #2
0
ファイル: Shopping.cs プロジェクト: srdjos/amadeus-dotnet
 /// <summary>
 /// Initializes a new instance of the Shopping class.
 /// </summary>
 /// <param name="client">Client.</param>
 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
        /// <summary>
        /// Creates a builder object initialized with the environment variables that can be used to build an Amadeus API client
        /// </summary>
        /// <returns>A configuration object</returns>
        public static Configuration builder()
        {
            string clientId     = Environment.GetEnvironmentVariable("AMADEUS_CLIENT_ID");
            string clientSecret = Environment.GetEnvironmentVariable("AMADEUS_CLIENT_SECRET");

            if ((clientId == null) || (clientSecret == null))
            {
                Console.Write("client_id and client_secret not set!");
            }

            Configuration configuration = Amadeus.builder(clientId, clientSecret);

            return(configuration);
        }
コード例 #4
0
ファイル: Travel.cs プロジェクト: srdjos/amadeus-dotnet
 /// <summary>
 /// Initializes a new instance of the Travel class.
 /// </summary>
 /// <param name="client">Client.</param>
 public Travel(Amadeus client)
 {
     this.analytics = new Analytics(client);
 }