Package src.model
Class BookingHistory
Object
BookingHistory
- All Implemented Interfaces:
Serializable
The Class that handles the data of Booking History
- Version:
- 1.0
- Author:
- Ci Hui
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBookingHistory(String UUID, ArrayList<MovieTicket> movieTicket, Payment payment) Constructor for the BookingHistory Class -
Method Summary
Modifier and TypeMethodDescriptionGets the ArrayList ofMovieTicketbooked by the MovieGoerget thePaymentmade by the MovieGoer for the BookinggetUUID()Gets the unique ID of the Booking HistoryvoidsetMovieTicket(ArrayList<MovieTicket> movieTicket) Sets the ArrayList ofMovieTicketto be booked by the MovieGoervoidsetPayment(Payment payment) set thePaymentto be made by the MovieGoer for the BookingvoidSet the unique ID of the Booking History
-
Constructor Details
-
BookingHistory
Constructor for the BookingHistory Class- Parameters:
UUID- is the unique ID in the databasemovieTicket- is theMovieTicketbooked by the MovieGoerpayment- is thePaymentmade my the MovieGoer for the Booking
-
-
Method Details
-
getUUID
Gets the unique ID of the Booking History- Returns:
- the unique ID of the Booking History
-
setUUID
Set the unique ID of the Booking History- Parameters:
UUID- is the unique ID of the Booking History to be set
-
getMovieTicket
Gets the ArrayList ofMovieTicketbooked by the MovieGoer- Returns:
- the ArrayList of
MovieTicketbooked by the MovieGoer
-
setMovieTicket
Sets the ArrayList ofMovieTicketto be booked by the MovieGoer- Parameters:
movieTicket- is the ArrayList ofMovieTicketto be booked by the MovieGoer
-
getPayment
get thePaymentmade by the MovieGoer for the Booking- Returns:
- the
Paymentmade by the MovieGoer for the Booking
-
setPayment
set thePaymentto be made by the MovieGoer for the Booking- Parameters:
payment- is thePaymentto be made by the MovieGoer for the Booking
-