|
| 1 | +package com.amadeus.resources; |
| 2 | + |
| 3 | +import lombok.Getter; |
| 4 | +import lombok.ToString; |
| 5 | + |
| 6 | +/** |
| 7 | + * An DatedFlight object as returned by the On Flight Status Demand API. |
| 8 | + * @see com.amadeus.schedule.Flights#get() |
| 9 | + */ |
| 10 | +@ToString |
| 11 | +public class DatedFlight extends Resource { |
| 12 | + protected DatedFlight() {} |
| 13 | + |
| 14 | + private @Getter String type; |
| 15 | + private @Getter String scheduledDepartureDate; |
| 16 | + private @Getter FlightDesignator flightDesignator; |
| 17 | + private @Getter FlightPoints[] flightPoints; |
| 18 | + private @Getter Segments[] segments; |
| 19 | + private @Getter Legs[] legs; |
| 20 | + |
| 21 | + @ToString |
| 22 | + public class FlightDesignator { |
| 23 | + protected FlightDesignator() { |
| 24 | + } |
| 25 | + |
| 26 | + private @Getter String carrierCode; |
| 27 | + private @Getter int flightNumber; |
| 28 | + } |
| 29 | + |
| 30 | + @ToString |
| 31 | + public class FlightPoints { |
| 32 | + protected FlightPoints() { |
| 33 | + } |
| 34 | + |
| 35 | + private @Getter String iataCode; |
| 36 | + private @Getter Departure departure; |
| 37 | + private @Getter Arrival arrival; |
| 38 | + } |
| 39 | + |
| 40 | + @ToString |
| 41 | + public class Departure { |
| 42 | + protected Departure() { |
| 43 | + } |
| 44 | + |
| 45 | + private @Getter Timings[] timings; |
| 46 | + } |
| 47 | + |
| 48 | + @ToString |
| 49 | + public class Arrival { |
| 50 | + protected Arrival() { |
| 51 | + } |
| 52 | + |
| 53 | + private @Getter Timings[] timings; |
| 54 | + } |
| 55 | + |
| 56 | + @ToString |
| 57 | + public class Timings { |
| 58 | + protected Timings() { |
| 59 | + } |
| 60 | + |
| 61 | + private @Getter String qualifier; |
| 62 | + private @Getter String value; |
| 63 | + } |
| 64 | + |
| 65 | + @ToString |
| 66 | + public class Segments { |
| 67 | + protected Segments() { |
| 68 | + } |
| 69 | + |
| 70 | + private @Getter String boardPointIataCode; |
| 71 | + private @Getter String offPointIataCode; |
| 72 | + private @Getter String scheduledSegmentDuration; |
| 73 | + } |
| 74 | + |
| 75 | + @ToString |
| 76 | + public class Legs { |
| 77 | + protected Legs() { |
| 78 | + } |
| 79 | + |
| 80 | + private @Getter String boardPointIataCode; |
| 81 | + private @Getter String offPointIataCode; |
| 82 | + private @Getter AircraftEquipment aircraftEquipment; |
| 83 | + private @Getter String scheduledLegDuration; |
| 84 | + } |
| 85 | + |
| 86 | + @ToString |
| 87 | + public class AircraftEquipment { |
| 88 | + protected AircraftEquipment() { |
| 89 | + } |
| 90 | + |
| 91 | + private @Getter String aircraftType; |
| 92 | + } |
| 93 | + |
| 94 | +} |
0 commit comments