Package src.model

Class MovieTicket

Object
MovieTicket
All Implemented Interfaces:
Serializable

public class MovieTicket extends Object implements Serializable
The Class that handles the data of Movie Ticket
Version:
1.0
Author:
Ci Hui
See Also:
  • 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 database
      movieUUID - is the unique ID of the chosen Movie
      showTime - is the Showing Time of the chosen Movie
      seatID - is the Seat ID chosen
      cinemaUUID - is the unique ID of the chosen Cinema
  • Method Details

    • getUUID

      public String getUUID()
      Gets the unique ID of the Movie Ticket
      Returns:
      unique ID of the Movie Ticket
    • setUUID

      public void setUUID(String UUID)
      Set the unique ID of the Movie Ticket
      Parameters:
      UUID - is the unique ID of the Movie Ticket to be set
    • getMovieToWatch

      public String getMovieToWatch()
      Gets the unique ID of the chosen Movie
      Returns:
      the unique ID of the chosen Movie
    • setMovieToWatch

      public void setMovieToWatch(String movieToWatch)
      Sets the unique ID of the chosen Movie
      Parameters:
      movieToWatch - the unique ID of the chosen Movie to be set
    • getShowTime

      public DateTime getShowTime()
      Gets the Showing Time of the chosen Movie
      Returns:
      the Showing Time of the chosen Movie
    • setShowTime

      public void setShowTime(DateTime showTime)
      Sets the Showing Time of the chosen Movie
      Parameters:
      showTime - is the Showing Time of the chosen Movie to be set
    • getShowingVenue

      public String 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

      public void setShowingVenue(String showingVenue)
      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

      public String getSeatID()
      Gets the Seat ID of chosen Seat
      Returns:
      the Seat ID of chosen Seat
    • setSeatID

      public void setSeatID(String seatID)
      Sets the Seat ID of the chosen Seat
      Parameters:
      seatID - is the Seat ID of the chosen Seat