Skip to content

Commit

Permalink
Add amenities (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyroux authored Jun 11, 2020
1 parent c744f74 commit 46a9f06
Showing 1 changed file with 77 additions and 1 deletion.
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;

}

}

0 comments on commit 46a9f06

Please sign in to comment.