Class Flight
java.lang.Object
com.persequor.saga.modules.flightradar24.model.Flight
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addActualFlight
(ActualFlight actualFlight) getAverageFlightTime
(String origin, String destination) Get average flight time - or 6h if we cannot calculate itgetId()
boolean
boolean
void
setActualFlights
(List<ActualFlight> actualFlights) void
setCreatedAt
(Instant createdAt) void
-
Field Details
-
DEFAULT_FLIGHT_TIME
-
DEFAULT_TRUCK_TIME
-
-
Constructor Details
-
Flight
public Flight()
-
-
Method Details
-
getId
-
setId
-
getActualFlights
-
setActualFlights
-
getCreatedAt
-
setCreatedAt
-
addActualFlight
-
isRealFlight
public boolean isRealFlight() -
isOutdated
public boolean isOutdated() -
getAverageFlightTime
Get average flight time - or 6h if we cannot calculate it- Parameters:
destination
- the destination- Returns:
- the average flight time (or 6h if we cannot find it)
-
getOrigins
-
getDestinations
-