Skip to content

Commit

Permalink
Merge pull request #97 from amadeus4dev/seatmap-availabity-media
Browse files Browse the repository at this point in the history
Add media and seats counter in seatmap model
  • Loading branch information
tsolakoua authored Feb 22, 2021
2 parents fc242fe + 7df86c2 commit 06d1fc6
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions src/main/java/com/amadeus/resources/SeatMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ protected SeatMap() {}
private @Getter Departure departure;
private @Getter Deck[] decks;
private @Getter AircraftCabinAmenities aircraftCabinAmenities;
private @Getter AvailableSeatsCounter[] availableSeatsCounters;

@ToString
public class Aircraft {
Expand Down Expand Up @@ -79,6 +80,7 @@ protected AmenitySeat() {
private @Getter String spaceUnit;
private @Getter String tilt;
private @Getter String amenityType;
private @Getter Media medias;

}

Expand Down Expand Up @@ -147,4 +149,33 @@ protected DeckConfiguration() {
private @Getter int endWingsX;

}

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

private @Getter int value;
private @Getter String travelerId;
}

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

private @Getter String title;
private @Getter String href;
private @Getter String mediaType;
private @Getter QualifiedFreeText description;
}

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

private @Getter String text;
private @Getter String lang;
}
}

0 comments on commit 06d1fc6

Please sign in to comment.