Class MovieTicketManager

Object
MovieTicketManager

public class MovieTicketManager extends Object
Controller for handling all logic related to MovieTicket
Version:
1.0
Author:
Ci Hui
  • Constructor Details

    • MovieTicketManager

      public MovieTicketManager()
      Constructor
  • Method Details

    • createMovieTicket

      public static MovieTicket createMovieTicket(String movieUUID, DateTime showTime, String cinemaUUID, String seatID)
      Method to create a MovieTicket instance and save to database
      Parameters:
      movieUUID - is the unique ID of the chosen Movie
      showTime - is the Showing Time of the chosen Movie
      cinemaUUID - is the unique ID of the chosen Cinema
      seatID - is the front-end displayed seat ID of the chosen Seat
      Returns:
      the created MovieTicket instance
    • createMovieTicketList

      public static ArrayList<MovieTicket> createMovieTicketList(ArrayList<String> seatID, Movie movieToWatch, DateTime showTime, Cinema cinema, ArrayList<Seat> seatingPlan, double totalMovieTicketPrice)
      Method to create an Array List of MovieTicket from the Array List of seat ID booked by the Movie Goer
      Parameters:
      seatID - is the Array List of front-end displayed Seat ID booked by the Movie Goer
      movieToWatch - is the Movie chosen by the Movie Goer
      showTime - is the DateTime of the Showing Time of the Movie chosen by the Movie Goer
      cinema - is the Cinema chosen by the Movie Goer
      seatingPlan - is the seating plan of the chosen Cinema
      totalMovieTicketPrice - is the Total Price of the Movie Tickets booked by the Movie Goer
      Returns:
      the created Array List of MovieTicket instance