Package moblima.boundaries
Class BookingMenu
java.lang.Object
moblima.boundaries.Menu
moblima.boundaries.BookingMenu
The type Booking menu.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
createMovieShowtime
(int movieId) Create movie showtime int.boolean
editCinema
(int cinemaId) Edit cinema boolean.boolean
editShowtime
(String showtimeId) Edit showtime boolean.getBookingMenu
(String customerId) Gets booking menu.Gets cinema menu.static BookingHandler
Gets handler.static BookingMenu
Gets instance.getShowtimeMenu
(List<Showtime> showtimes) Gets showtime menu.int
Register cinema int.int[]
seatSelection
(int showtimeIdx) Seat selection int [ ].int
selectBookingIdx
(String customerId) Select booking idx int.int
Select cinema idx int.int
selectCinemaIdx
(List<Cinema> cinemas) Select cinema idx int.int
selectCineplexIdx
(List<String> cineplexCodes) Select cineplex idx int.int
selectMovieShowtimeIdx
(int movieId, List<Showtime> showtimes, boolean showAdd) Select showtime idx int.List<int[]>
selectSeat
(int showtimeIdx) Select seat list.int
selectShowtimeIdx
(List<Showtime> showtimes) Select showtime idx int.selectTicket
(List<String> ticketOptions) Select ticket booking .int
Sets cinema id.int
setCinemaId
(int excludeId) Sets cinema id.int
Sets movie id.Sets show type.void
showMenu()
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:Menu
Show 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
-