Class MovieGoerEY

java.lang.Object
User
MovieGoerEY

public class MovieGoerEY extends User
A MovieGoerEY object

A MovieGoerEY object contains all the parameters necessary to store MovieGoer user details

  • Field Details

    • email

      public final String email
      To contain the email of the MovieGoer
    • mobileNumber

      public final String mobileNumber
      To contain the mobile number of the MovieGoer
    • age

      public final Integer age
      To contain the age of the MovieGoer
    • bookings

      public final ArrayList<String> bookings
      To contain the bookings of the MovieGoer
  • Constructor Details

    • MovieGoerEY

      public MovieGoerEY(String userID, String name, String email, String mobileNumber, Integer age, ArrayList<String> bookings)
      Constructor for MovieGoerEY
      Parameters:
      userID - The userID
      name - The user name
      email - The email of the user
      mobileNumber - The mobile number of the user
      age - The age of the user
      bookings - The bookings by the user
  • Method Details

    • getAgeType

      public String getAgeType()
      method to get age type of the movie goer
      Returns:
      The age type (ADULT,SENIOR,CHILD,STUDENT)
    • getEmailID

      public String getEmailID()
      method to get email ID
      Returns:
      The movie goer email ID
    • getMobileNumber

      public String getMobileNumber()
      method to get the mobile number of the movie goer
      Returns:
      The mobile number
    • getAge

      public Integer getAge()
      method to get the age of the movie goer
      Returns:
      The age of the movie goer
    • getBookings

      public ArrayList<String> getBookings()
      method to get the bookings of the movie goer
      Returns:
      The bookings
    • addBookingID

      public void addBookingID(String bookingID)
      Method to add bookingID
      Parameters:
      bookingID - The booking ID