public class DirectDestinations
extends java.lang.Object
A namespaced client for the
/v1/airport/direct-destinations endpoints.
Access via the Amadeus client object.
Amadeus amadeus = Amadeus.builder("clientId", "secret").build();
amadeus.airport.directDestinations;| Constructor and Description |
|---|
DirectDestinations(Amadeus client)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Destination[] |
get()
Convenience method for calling
get without any parameters. |
Destination[] |
get(Params params)
Find all destinations served by a given airport.
|
public DirectDestinations(Amadeus client)
public Destination[] get(Params params) throws ResponseException
Find all destinations served by a given airport.
amadeus.airport.directDestinations.get(Params
.with("departureAirportCode", "MAD")
.and("max","2"));
params - the parameters to send to the APIResponseException - when an exception occurspublic Destination[] get() throws ResponseException
get without any parameters.ResponseExceptionget()