public class AirportOnTime
extends java.lang.Object
A namespaced client for the
/v1/airport/predictions/on-time endpoints.
Access via the Amadeus client object.
Amadeus amadeus = Amadeus.builder("clientId", "secret").build();
amadeus.airport.predictions.onTime;| Constructor and Description |
|---|
AirportOnTime(Amadeus client)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Prediction |
get()
Convenience method for calling
get without any parameters. |
Prediction |
get(Params params)
Returns a percentage of on-time flight from a given airport.
|
public AirportOnTime(Amadeus client)
public Prediction get(Params params) throws ResponseException
Returns a percentage of on-time flight from a given airport.
OnTime airportOnTime = amadeus.airport.predictions.onTime.get(Params
.with("airportCode", "NCE")
.and("date", "2020-09-01"));
params - the parameters to send to the APIResponseException - when an exception occurspublic Prediction get() throws ResponseException
get without any parameters.ResponseExceptionget()