|
| 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 FlightPoint[] flightPoints; |
| 18 | + private @Getter Segment[] segments; |
| 19 | + private @Getter Leg[] legs; |
| 20 | + |
| 21 | + @ToString |
| 22 | + public class FlightDesignator { |
| 23 | + protected FlightDesignator() { |
| 24 | + } |
| 25 | + |
| 26 | + private @Getter String carrierCode; |
| 27 | + private @Getter int flightNumber; |
| 28 | + private @Getter String operationalSuffix; |
| 29 | + |
| 30 | + } |
| 31 | + |
| 32 | + @ToString |
| 33 | + public class FlightPoint { |
| 34 | + protected FlightPoint() { |
| 35 | + } |
| 36 | + |
| 37 | + private @Getter String iataCode; |
| 38 | + private @Getter Departure departure; |
| 39 | + private @Getter Arrival arrival; |
| 40 | + } |
| 41 | + |
| 42 | + @ToString |
| 43 | + public class Departure { |
| 44 | + protected Departure() { |
| 45 | + } |
| 46 | + |
| 47 | + private @Getter Timing[] timings; |
| 48 | + private @Getter Terminal[] terminal; |
| 49 | + private @Getter Gate[] gate; |
| 50 | + } |
| 51 | + |
| 52 | + @ToString |
| 53 | + public class Arrival { |
| 54 | + protected Arrival() { |
| 55 | + } |
| 56 | + |
| 57 | + private @Getter Timing[] timings; |
| 58 | + private @Getter Terminal[] terminal; |
| 59 | + private @Getter Gate[] gate; |
| 60 | + } |
| 61 | + |
| 62 | + @ToString |
| 63 | + public class Timing { |
| 64 | + protected Timing() { |
| 65 | + } |
| 66 | + |
| 67 | + private @Getter String qualifier; |
| 68 | + private @Getter String value; |
| 69 | + private @Getter Delay delays; |
| 70 | + } |
| 71 | + |
| 72 | + @ToString |
| 73 | + public class Delay { |
| 74 | + protected Delay() { |
| 75 | + } |
| 76 | + |
| 77 | + private @Getter String duration; |
| 78 | + } |
| 79 | + |
| 80 | + @ToString |
| 81 | + public class Gate { |
| 82 | + protected Gate() { |
| 83 | + } |
| 84 | + |
| 85 | + private @Getter String mainGate; |
| 86 | + } |
| 87 | + |
| 88 | + @ToString |
| 89 | + public class Terminal { |
| 90 | + protected Terminal() { |
| 91 | + } |
| 92 | + |
| 93 | + private @Getter String code; |
| 94 | + } |
| 95 | + |
| 96 | + @ToString |
| 97 | + public class Segment { |
| 98 | + protected Segment() { |
| 99 | + } |
| 100 | + |
| 101 | + private @Getter String boardPointIataCode; |
| 102 | + private @Getter String offPointIataCode; |
| 103 | + private @Getter String scheduledSegmentDuration; |
| 104 | + private @Getter Partnership partnership; |
| 105 | + } |
| 106 | + |
| 107 | + @ToString |
| 108 | + public class Partnership { |
| 109 | + protected Partnership() { |
| 110 | + } |
| 111 | + |
| 112 | + private @Getter FlightDesignator operatingFlight; |
| 113 | + } |
| 114 | + |
| 115 | + @ToString |
| 116 | + public class Leg { |
| 117 | + protected Leg() { |
| 118 | + } |
| 119 | + |
| 120 | + private @Getter String boardPointIataCode; |
| 121 | + private @Getter String offPointIataCode; |
| 122 | + private @Getter AircraftEquipment aircraftEquipment; |
| 123 | + private @Getter String scheduledLegDuration; |
| 124 | + } |
| 125 | + |
| 126 | + @ToString |
| 127 | + public class AircraftEquipment { |
| 128 | + protected AircraftEquipment() { |
| 129 | + } |
| 130 | + |
| 131 | + private @Getter String aircraftType; |
| 132 | + } |
| 133 | + |
| 134 | +} |
0 commit comments