Package moblima.boundaries
Class BookingMenu
java.lang.Object
moblima.boundaries.Menu
moblima.boundaries.BookingMenu
The type Booking menu.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionintcreateMovieShowtime(int movieId) Create movie showtime int.booleaneditCinema(int cinemaId) Edit cinema boolean.booleaneditShowtime(String showtimeId) Edit showtime boolean.getBookingMenu(String customerId) Gets booking menu.Gets cinema menu.static BookingHandlerGets handler.static BookingMenuGets instance.getShowtimeMenu(List<Showtime> showtimes) Gets showtime menu.intRegister cinema int.int[]seatSelection(int showtimeIdx) Seat selection int [ ].intselectBookingIdx(String customerId) Select booking idx int.intSelect cinema idx int.intselectCinemaIdx(List<Cinema> cinemas) Select cinema idx int.intselectCineplexIdx(List<String> cineplexCodes) Select cineplex idx int.intselectMovieShowtimeIdx(int movieId, List<Showtime> showtimes, boolean showAdd) Select showtime idx int.List<int[]>selectSeat(int showtimeIdx) Select seat list.intselectShowtimeIdx(List<Showtime> showtimes) Select showtime idx int.selectTicket(List<String> ticketOptions) Select ticket booking .intSets cinema id.intsetCinemaId(int excludeId) Sets cinema id.intSets movie id.Sets show type.voidshowMenu()Show menu.Methods inherited from class moblima.boundaries.Menu
awaitContinue, displayMenu, displayMenuList, displayMenuList, getListSelectionIdx, getListSelectionIdx, printChanges, refreshMenu, setDate, setDateTime, setDouble, setInt, setString
-
Method Details
-
getInstance
Gets instance.- Returns:
- the instance
-
getHandler
Gets handler.- Returns:
- the handler
-
showMenu
public void showMenu()Description copied from class:MenuShow menu. -
getShowtimeMenu
Gets showtime menu.- Parameters:
showtimes- the showtimes- Returns:
- the showtime menu
-
getBookingMenu
Gets booking menu.- Parameters:
customerId- the customer id- Returns:
- the booking menu
-
getCinemaMenu
Gets cinema menu.- Returns:
- the cinema menu
-
selectBookingIdx
Select booking idx int.- Parameters:
customerId- the customer id- Returns:
- the int
-
selectCineplexIdx
Select cineplex idx int.- Parameters:
cineplexCodes- the cineplex codes- Returns:
- the int
-
selectCinemaIdx
public int selectCinemaIdx()Select cinema idx int.- Returns:
- the int
-
selectCinemaIdx
Select cinema idx int.- Parameters:
cinemas- the cinemas- Returns:
- the int
-
selectShowtimeIdx
Select showtime idx int.- Parameters:
showtimes- the showtimes- Returns:
- the int
-
selectMovieShowtimeIdx
Select showtime idx int.- Parameters:
movieId- the movie idshowtimes- the showtimesshowAdd- the show add- Returns:
- the int
-
selectTicket
Select ticket booking . ticket type.- Parameters:
ticketOptions- the ticket options- Returns:
- the booking . ticket type
-
selectSeat
Select seat list.- Parameters:
showtimeIdx- the showtime idx- Returns:
- the list
-
seatSelection
public int[] seatSelection(int showtimeIdx) Seat selection int [ ].- Parameters:
showtimeIdx- the showtime idx- Returns:
- the int [ ]
-
createMovieShowtime
public int createMovieShowtime(int movieId) Create movie showtime int.- Parameters:
movieId- the movie id- Returns:
- the int
-
setCinemaId
public int setCinemaId(int excludeId) Sets cinema id.- Parameters:
excludeId- the exclude id- Returns:
- the cinema id
-
setCinemaId
public int setCinemaId()Sets cinema id.- Returns:
- the cinema id
-
setMovieId
public int setMovieId()Sets movie id.- Returns:
- the movie id
-
setShowType
Sets show type.- Returns:
- the show type
-
editShowtime
Edit showtime boolean.- Parameters:
showtimeId- the showtime id- Returns:
- the boolean
-
editCinema
public boolean editCinema(int cinemaId) Edit cinema boolean.- Parameters:
cinemaId- the cinema id- Returns:
- the boolean
-
registerCinema
public int registerCinema()Register cinema int.- Returns:
- the int
-