-
Notifications
You must be signed in to change notification settings - Fork 0
/
FlightJSONConstants.java
43 lines (40 loc) · 1.04 KB
/
FlightJSONConstants.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
public enum FlightJSONConstants {
FILE_NAME("JSON/Flights.json"),
FLIGHT_ID("flightID"),
AIRLINE("airline"),
DEPARTURE_LOCATION("departureLocation"),
DESTINATION_LOCATION("destinationLocation"),
IS_CONNECTING("isConnecting"),
PREVIOUS_FLIGHT("previousFlight"),
NEXT_FLIGHT("nextFlight"),
DEPARTURE_TIME("departureTime"),
ARRIVAL_TIME("arrivalTime"),
FLIGHT_DURATION("flightDuration"),
NUM_ROWS("numRows"),
NUM_SEATS_PER_ROW("numSeatsPerRow"),
SEATS("seats"),
PASSENGER("passenger"),
NAME("name"),
DATE_OF_BIRTH("dateOfBirth"),
PASSPORT_NUMBER("passportNumber"),
COST("cost"),
CLASS("class"),
SEAT_ROW("seatRow"),
SEAT_LETTER("seatLetter"),
SEAT_TAKEN("seatTaken");
private final String name;
/**
* Contant for the json name
* @param name
*/
private FlightJSONConstants(String name) {
this.name = name;
}
/**
* Gets the name of the JSON file
* @return
*/
public String getName() {
return name;
}
}