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
ConstructorDescriptionBookingHistory
(String UUID, ArrayList<MovieTicket> movieTicket, Payment payment) Constructor for the BookingHistory Class -
Method Summary
Modifier and TypeMethodDescriptionGets the ArrayList ofMovieTicket
booked by the MovieGoerget thePayment
made by the MovieGoer for the BookinggetUUID()
Gets the unique ID of the Booking Historyvoid
setMovieTicket
(ArrayList<MovieTicket> movieTicket) Sets the ArrayList ofMovieTicket
to be booked by the MovieGoervoid
setPayment
(Payment payment) set thePayment
to be made by the MovieGoer for the Bookingvoid
Set 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 theMovieTicket
booked by the MovieGoerpayment
- is thePayment
made 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 ofMovieTicket
booked by the MovieGoer- Returns:
- the ArrayList of
MovieTicket
booked by the MovieGoer
-
setMovieTicket
Sets the ArrayList ofMovieTicket
to be booked by the MovieGoer- Parameters:
movieTicket
- is the ArrayList ofMovieTicket
to be booked by the MovieGoer
-
getPayment
get thePayment
made by the MovieGoer for the Booking- Returns:
- the
Payment
made by the MovieGoer for the Booking
-
setPayment
set thePayment
to be made by the MovieGoer for the Booking- Parameters:
payment
- is thePayment
to be made by the MovieGoer for the Booking
-