Package src.model

Class BookingHistory

Object
BookingHistory
All Implemented Interfaces:
Serializable

public class BookingHistory extends Object implements Serializable
The Class that handles the data of Booking History
Version:
1.0
Author:
Ci Hui
See Also:
  • Constructor Details

    • BookingHistory

      public BookingHistory(String UUID, ArrayList<MovieTicket> movieTicket, Payment payment)
      Constructor for the BookingHistory Class
      Parameters:
      UUID - is the unique ID in the database
      movieTicket - is the MovieTicket booked by the MovieGoer
      payment - is the Payment made my the MovieGoer for the Booking
  • Method Details

    • getUUID

      public String getUUID()
      Gets the unique ID of the Booking History
      Returns:
      the unique ID of the Booking History
    • setUUID

      public void setUUID(String UUID)
      Set the unique ID of the Booking History
      Parameters:
      UUID - is the unique ID of the Booking History to be set
    • getMovieTicket

      public ArrayList<MovieTicket> getMovieTicket()
      Gets the ArrayList of MovieTicket booked by the MovieGoer
      Returns:
      the ArrayList of MovieTicket booked by the MovieGoer
    • setMovieTicket

      public void setMovieTicket(ArrayList<MovieTicket> movieTicket)
      Sets the ArrayList of MovieTicket to be booked by the MovieGoer
      Parameters:
      movieTicket - is the ArrayList of MovieTicket to be booked by the MovieGoer
    • getPayment

      public Payment getPayment()
      get the Payment made by the MovieGoer for the Booking
      Returns:
      the Payment made by the MovieGoer for the Booking
    • setPayment

      public void setPayment(Payment payment)
      set the Payment to be made by the MovieGoer for the Booking
      Parameters:
      payment - is the Payment to be made by the MovieGoer for the Booking