Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add amenities in SeatMap #80

Merged
merged 1 commit into from
Jun 11, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 77 additions & 1 deletion src/main/java/com/amadeus/resources/SeatMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ protected SeatMap() {}
private @Getter Aircraft aircraft;
private @Getter Departure departure;
private @Getter Deck[] decks;
private @Getter AircraftCabinAmenities aircraftCabinAmenities;

@ToString
public class Aircraft {
Expand Down Expand Up @@ -55,6 +56,82 @@ protected Deck() {

}

@ToString
public class AircraftCabinAmenities {
protected AircraftCabinAmenities() {
}

private @Getter AmenityPower power;
private @Getter AmenityWifi wifi;
private @Getter AmenityBeverage beverage;
private @Getter AmenityFood food;
private @Getter AmenityEntertainment[] entertainment;
private @Getter AmenitySeat seat;

}

@ToString
public class AmenitySeat {
protected AmenitySeat() {
}

private @Getter int legSpace;
private @Getter String spaceUnit;
private @Getter String tilt;
private @Getter String amenityType;

}

@ToString
public class AmenityPower {
protected AmenityPower() {
}

private @Getter boolean isChargeable;
private @Getter String powerType;

}

@ToString
public class AmenityWifi {
protected AmenityWifi() {
}

private @Getter boolean isChargeable;
private @Getter String wifiCoverage;

}

@ToString
public class AmenityBeverage {
protected AmenityBeverage() {
}

private @Getter boolean isChargeable;
private @Getter String beverageType;

}

@ToString
public class AmenityFood {
protected AmenityFood() {
}

private @Getter boolean isChargeable;
private @Getter String foodType;

}

@ToString
public class AmenityEntertainment {
protected AmenityEntertainment() {
}

private @Getter boolean isChargeable;
private @Getter String entertainmentType;

}

@ToString
public class DeckConfiguration {
protected DeckConfiguration() {
Expand All @@ -70,5 +147,4 @@ protected DeckConfiguration() {
private @Getter int endWingsX;

}

}