Package moblima.control.controllers
Class CustomerController
java.lang.Object
moblima.control.controllers.MovieBookingController
moblima.control.controllers.CustomerController
The type Customer controller.
-
Field Summary
Fields inherited from class moblima.control.controllers.MovieBookingController
bookingMenu, movieMenu, settingsMenu
-
Method Summary
Modifier and TypeMethodDescriptionGets customer menu.static CustomerController
Gets instance.int
makeBooking
(Customer customer, Showtime showtime) Make booking int.void
viewBookings
(String customerId) View bookings.Methods inherited from class moblima.control.controllers.MovieBookingController
bookingHandler, printRankedMoviesByBooking, printRankedMoviesByRatings, rankMoviesByBooking, rankMoviesByRatings, reviewHandler, settingsHandler, updateCinemas, updateCinemas, updateCineplexes, updateMovies, updateSettings, updateShowtimes, viewShowtimeAvailability
-
Method Details
-
getInstance
Gets instance.- Returns:
- the instance
-
getCustomerMenu
Gets customer menu.- Returns:
- the customer menu
-
viewBookings
View bookings.- Parameters:
customerId
- the customer id
-
makeBooking
Make booking int.- Parameters:
customer
- the customershowtime
- the showtime- Returns:
- the int
-