Class MovieGoerEY
java.lang.Object
User
MovieGoerEY
A MovieGoerEY object
A MovieGoerEY object contains all the parameters necessary
to store MovieGoer user details
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBookingID(String bookingID) Method to add bookingIDgetAge()method to get the age of the movie goermethod to get age type of the movie goermethod to get the bookings of the movie goermethod to get email IDmethod to get the mobile number of the movie goerMethods inherited from class User
getUserID, getUserName, getUserType, setUserID, setUserName, setUserType
-
Field Details
-
email
To contain the email of the MovieGoer -
mobileNumber
To contain the mobile number of the MovieGoer -
age
To contain the age of the MovieGoer -
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 userIDname- The user nameemail- The email of the usermobileNumber- The mobile number of the userage- The age of the userbookings- The bookings by the user
-
-
Method Details
-
getAgeType
method to get age type of the movie goer- Returns:
- The age type (ADULT,SENIOR,CHILD,STUDENT)
-
getEmailID
method to get email ID- Returns:
- The movie goer email ID
-
getMobileNumber
method to get the mobile number of the movie goer- Returns:
- The mobile number
-
getAge
method to get the age of the movie goer- Returns:
- The age of the movie goer
-
getBookings
method to get the bookings of the movie goer- Returns:
- The bookings
-
addBookingID
Method to add bookingID- Parameters:
bookingID- The booking ID
-