Appendix
Seat Layout API
- The seat layout of a hall is represented by the
twoDimensionView
field of theCinemaHallLayout
object. twoDimensionView
is an array whereby each element is of typeSeatRow
which represents the row of the seat layout.- The
SeatRow
contains the fieldseats
which is an array whose elements represents a seat or an aile. - The seat is represented using the
Seat
object, meanwhile the aile is represented usingnull
.
Seats Grouping Mechanism
- Depending upon the
allocation
value of the seat, several seats may be grouped into a single seat. For example, two adjacent seats withallocation
values of 2 will be grouped into a single seat. - However, when reserving a grouped seat, the
key
of each of the seats in the group will need to be passed to thereserveSeats
mutation. - The grouped seats will be considered as one single seat, hence only one ticket will be required to purchase the grouped seat.
- The following is a sample Javascript code snipppet that shows the suggested algorithm for seats grouping:
for(let i = 0; i < twoDimensionView.length; i++){
let row = twoDimensionView[i];
for(let j= 0; j < row.seats.length; j++){
let seat = row.seats[j];
let groupedSeat = [];
let occupy = j+seat.allocation
if (occupy > row.seats.length){
continue
}
if(seat != null){
groupedSeat = seat.splice(j, occupy);
}
......
}
}
List of Hall Types
Due to the limitations of the cinema APIs, film formats (2D/STANDARD, 3D, etc) and hall experiences (GETHA LUX SUITE, PLAY+, etc) are a single property, which we refer to as a hall type. As such, our API will return a single value that describes the cinema hall under the type
property of the CinemaHall object. Below are some of the hall types that WeTix API may return. The list of hall types below is not fixed and may change over time as we receive different combinations of film formats and hall experiences from the cinemas:
- STANDARD
- 3D
- ATMOS
- PLAY+
- ATMOS D-BOX
- PREMIERE CLASS
- MAXX
- GETHA LUX SUITE
- BIG
- ATMOS BIG
- 4DX
- ATMOS MAXX
- D-BOX
- ESCAPE STUDIO
- STANDARD TAMIL
- STANDARD TELUGU
- STANDARD HINDI
- ATMOS D-BOX MAXX
- COMFORT CABIN
- ONYX
- MX4D
- ATMOS GETHA LUX SUITE
- SCREEN X
- D-BOX MAXX
- IMAX
- ATMOS BIG PLAY+
The image below shows sample hall types displayed on WeTix showtimes page.
