Class BookingMenu

java.lang.Object
moblima.boundaries.Menu
moblima.boundaries.BookingMenu

public class BookingMenu extends Menu
The type Booking menu.
  • Method Details

    • getInstance

      public static BookingMenu getInstance()
      Gets instance.
      Returns:
      the instance
    • getHandler

      public static BookingHandler getHandler()
      Gets handler.
      Returns:
      the handler
    • showMenu

      public void showMenu()
      Description copied from class: Menu
      Show menu.
      Specified by:
      showMenu in class Menu
    • getShowtimeMenu

      public LinkedHashMap<String,Runnable> getShowtimeMenu(List<Showtime> showtimes)
      Gets showtime menu.
      Parameters:
      showtimes - the showtimes
      Returns:
      the showtime menu
    • getBookingMenu

      public LinkedHashMap<String,Runnable> getBookingMenu(String customerId)
      Gets booking menu.
      Parameters:
      customerId - the customer id
      Returns:
      the booking menu
    • getCinemaMenu

      public LinkedHashMap<String,Runnable> getCinemaMenu()
      Gets cinema menu.
      Returns:
      the cinema menu
    • selectBookingIdx

      public int selectBookingIdx(String customerId)
      Select booking idx int.
      Parameters:
      customerId - the customer id
      Returns:
      the int
    • selectCineplexIdx

      public int selectCineplexIdx(List<String> cineplexCodes)
      Select cineplex idx int.
      Parameters:
      cineplexCodes - the cineplex codes
      Returns:
      the int
    • selectCinemaIdx

      public int selectCinemaIdx()
      Select cinema idx int.
      Returns:
      the int
    • selectCinemaIdx

      public int selectCinemaIdx(List<Cinema> cinemas)
      Select cinema idx int.
      Parameters:
      cinemas - the cinemas
      Returns:
      the int
    • selectShowtimeIdx

      public int selectShowtimeIdx(List<Showtime> showtimes)
      Select showtime idx int.
      Parameters:
      showtimes - the showtimes
      Returns:
      the int
    • selectMovieShowtimeIdx

      public int selectMovieShowtimeIdx(int movieId, List<Showtime> showtimes, boolean showAdd)
      Select showtime idx int.
      Parameters:
      movieId - the movie id
      showtimes - the showtimes
      showAdd - the show add
      Returns:
      the int
    • selectTicket

      public Booking.TicketType selectTicket(List<String> ticketOptions)
      Select ticket booking . ticket type.
      Parameters:
      ticketOptions - the ticket options
      Returns:
      the booking . ticket type
    • selectSeat

      public List<int[]> selectSeat(int showtimeIdx)
      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

      public Showtime.ShowType setShowType()
      Sets show type.
      Returns:
      the show type
    • editShowtime

      public boolean editShowtime(String showtimeId)
      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