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