Package src.model
Class MovieTicket
Object
MovieTicket
- All Implemented Interfaces:
Serializable
The Class that handles the data of Movie Ticket
- Version:
- 1.0
- Author:
- Ci Hui
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the unique ID of the chosen MovieGets the Seat ID of chosen SeatGets the unique ID of the chosen Cinema where the Moive is going to showGets the Showing Time of the chosen MoviegetUUID()
Gets the unique ID of the Movie Ticketvoid
setMovieToWatch
(String movieToWatch) Sets the unique ID of the chosen Movievoid
Sets the Seat ID of the chosen Seatvoid
setShowingVenue
(String showingVenue) Sets the unique ID of the chosen Cinema where the Moive is going to showvoid
setShowTime
(DateTime showTime) Sets the Showing Time of the chosen Movievoid
Set the unique ID of the Movie Ticket
-
Constructor Details
-
MovieTicket
public MovieTicket(String UUID, String movieUUID, DateTime showTime, String seatID, String cinemaUUID) Constructor for the MovieTicket Class- Parameters:
UUID
- is the unique ID in the databasemovieUUID
- is the unique ID of the chosen MovieshowTime
- is the Showing Time of the chosen MovieseatID
- is the Seat ID chosencinemaUUID
- is the unique ID of the chosen Cinema
-
-
Method Details
-
getUUID
Gets the unique ID of the Movie Ticket- Returns:
- unique ID of the Movie Ticket
-
setUUID
Set the unique ID of the Movie Ticket- Parameters:
UUID
- is the unique ID of the Movie Ticket to be set
-
getMovieToWatch
Gets the unique ID of the chosen Movie- Returns:
- the unique ID of the chosen Movie
-
setMovieToWatch
Sets the unique ID of the chosen Movie- Parameters:
movieToWatch
- the unique ID of the chosen Movie to be set
-
getShowTime
Gets the Showing Time of the chosen Movie- Returns:
- the Showing Time of the chosen Movie
-
setShowTime
Sets the Showing Time of the chosen Movie- Parameters:
showTime
- is the Showing Time of the chosen Movie to be set
-
getShowingVenue
Gets the unique ID of the chosen Cinema where the Moive is going to show- Returns:
- the unique ID of the chosen Cinema where the Moive is going to show
-
setShowingVenue
Sets the unique ID of the chosen Cinema where the Moive is going to show- Parameters:
showingVenue
- is the unique ID of the chosen Cinema where the Moive is going to show
-
getSeatID
Gets the Seat ID of chosen Seat- Returns:
- the Seat ID of chosen Seat
-
setSeatID
Sets the Seat ID of the chosen Seat- Parameters:
seatID
- is the Seat ID of the chosen Seat
-