Package src.model

Class MovieGoer

Object
MovieGoer
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Adult, Child, SeniorCitizen, Student

public abstract class MovieGoer extends Object implements Serializable
The Class that handles the data of Movie Goer
Version:
1.0
Author:
Jerick, Yeek Sheng
See Also:
  • Constructor Details

    • MovieGoer

      public MovieGoer(String UUID, String name, String email, String mobileNum, String username, String password)
      Constructor for MovieGoer class
      Parameters:
      UUID - is the unique ID of Movie Goer in database
      name - is the name of Movie Goer
      email - is the email address of Movie Goer
      mobileNum - is the mobile number of Movie Goer
      username - is the username of Movie Goer in MOBLIMA
      password - is the password of Movie Goer to login MOBLIMA
  • Method Details

    • getUsername

      public String getUsername()
      Gets the username of the Movie Goer
      Returns:
      username of Movie Goer
    • setUsername

      public void setUsername(String username)
      Sets the username of the Movie Goer
      Parameters:
      username - is the username to be set
    • getPassword

      public String getPassword()
      Gets the password of the Movie Goer
      Returns:
      password of the Movie Goer
    • setPassword

      public void setPassword(String password)
      Sets password of Movie Goer's account
      Parameters:
      password - is the password of Movie Goer's account to be set
    • getName

      public String getName()
      Gets the name of the Movie Goer
      Returns:
      name of the Movie Goer
    • setName

      public void setName(String name)
      Sets the name of the Movie Goer
      Parameters:
      name - is the name of Movie Goer to be set
    • getUUID

      public String getUUID()
      Gets unique ID of Movie Goer in database
      Returns:
      unique ID of the Movie Goer
    • setUUID

      public void setUUID(String UUID)
      Sets the unique ID of the Movie Goer
      Parameters:
      UUID - is the unique ID of Movie Goer to be set
    • getEmail

      public String getEmail()
      Gets the email address of the Movie Goer
      Returns:
      email address of the Movie Goer
    • setEmail

      public void setEmail(String email)
      Sets the email address of the Movie Goer
      Parameters:
      email - is the email address of Movie Goer to be set
    • getMobileNum

      public String getMobileNum()
      Gets the mobile number of the Movie Goer
      Returns:
      mobile number of the Movie Goer
    • setMobileNum

      public void setMobileNum(String mobileNum)
      Sets the mobile number of the Movie Goer
      Parameters:
      mobileNum - is the mobile number of Movie Goer to be set
    • getBookingHistory

      public ArrayList<BookingHistory> getBookingHistory()
      Gets all the BookingHistory made by the Movie Goer
      Returns:
      ArrayList of BookingHistory of the Movie Goer
    • setBookingHistory

      public void setBookingHistory(ArrayList<BookingHistory> bookingHistory)
      Sets all the BookingHistory made by the Movie Goer
      Parameters:
      bookingHistory - is the ArrayList of BookingHistory to be set
    • addBookingHistory

      public void addBookingHistory(BookingHistory history)
      Adds booking history of the Movie Goer
      Parameters:
      history - is the BookingHistory to be added
    • getReviewHistory

      public ArrayList<MovieReview> getReviewHistory()
      Gets all the MovieReview made by the Movie Goer
      Returns:
      ArrayList of MovieReview made by the Movie Goer
    • setReviewHistory

      public void setReviewHistory(ArrayList<MovieReview> reviewHistory)
      Sets all the MovieReview made by the Movie Goer
      Parameters:
      reviewHistory - is the ArrayList of MovieReview to be set
    • addReviewHistory

      public void addReviewHistory(MovieReview movieReview)
      Adds MovieReview to the Movie Goer's review history
      Parameters:
      movieReview - is the MovieReview to be added
    • getMovieGoerAge

      public abstract MovieGoerAge getMovieGoerAge()
      Gets the Movie Goer Age Group
      Returns:
      MovieGoerAge of the MovieGoer
    • getGoerPrice

      public abstract double getGoerPrice()
      Gets the price weight of the Movie Goer
      Returns:
      The price weight of the Movie Goer
    • setGoerPrice

      public abstract void setGoerPrice(double price)
      Sets the price weight of the Movie Goer
      Parameters:
      price - is the price weight of the Movie Goer