Package src.model
Class MovieGoer
Object
MovieGoer
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Adult
,Child
,SeniorCitizen
,Student
The Class that handles the data of Movie Goer
- Version:
- 1.0
- Author:
- Jerick, Yeek Sheng
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBookingHistory
(BookingHistory history) Adds booking history of the Movie Goervoid
addReviewHistory
(MovieReview movieReview) AddsMovieReview
to the Movie Goer's review historyGets all theBookingHistory
made by the Movie GoergetEmail()
Gets the email address of the Movie Goerabstract double
Gets the price weight of the Movie GoerGets the mobile number of the Movie Goerabstract MovieGoerAge
Gets the Movie Goer Age GroupgetName()
Gets the name of the Movie GoerGets the password of the Movie GoerGets all theMovieReview
made by the Movie GoerGets the username of the Movie GoergetUUID()
Gets unique ID of Movie Goer in databasevoid
setBookingHistory
(ArrayList<BookingHistory> bookingHistory) Sets all theBookingHistory
made by the Movie Goervoid
Sets the email address of the Movie Goerabstract void
setGoerPrice
(double price) Sets the price weight of the Movie Goervoid
setMobileNum
(String mobileNum) Sets the mobile number of the Movie Goervoid
Sets the name of the Movie Goervoid
setPassword
(String password) Sets password of Movie Goer's accountvoid
setReviewHistory
(ArrayList<MovieReview> reviewHistory) Sets all theMovieReview
made by the Movie Goervoid
setUsername
(String username) Sets the username of the Movie Goervoid
Sets the unique ID of the Movie Goer
-
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 databasename
- is the name of Movie Goeremail
- is the email address of Movie GoermobileNum
- is the mobile number of Movie Goerusername
- is the username of Movie Goer in MOBLIMApassword
- is the password of Movie Goer to login MOBLIMA
-
-
Method Details
-
getUsername
Gets the username of the Movie Goer- Returns:
- username of Movie Goer
-
setUsername
Sets the username of the Movie Goer- Parameters:
username
- is the username to be set
-
getPassword
Gets the password of the Movie Goer- Returns:
- password of the Movie Goer
-
setPassword
Sets password of Movie Goer's account- Parameters:
password
- is the password of Movie Goer's account to be set
-
getName
Gets the name of the Movie Goer- Returns:
- name of the Movie Goer
-
setName
Sets the name of the Movie Goer- Parameters:
name
- is the name of Movie Goer to be set
-
getUUID
Gets unique ID of Movie Goer in database- Returns:
- unique ID of the Movie Goer
-
setUUID
Sets the unique ID of the Movie Goer- Parameters:
UUID
- is the unique ID of Movie Goer to be set
-
getEmail
Gets the email address of the Movie Goer- Returns:
- email address of the Movie Goer
-
setEmail
Sets the email address of the Movie Goer- Parameters:
email
- is the email address of Movie Goer to be set
-
getMobileNum
Gets the mobile number of the Movie Goer- Returns:
- mobile number of the Movie Goer
-
setMobileNum
Sets the mobile number of the Movie Goer- Parameters:
mobileNum
- is the mobile number of Movie Goer to be set
-
getBookingHistory
Gets all theBookingHistory
made by the Movie Goer- Returns:
- ArrayList of
BookingHistory
of the Movie Goer
-
setBookingHistory
Sets all theBookingHistory
made by the Movie Goer- Parameters:
bookingHistory
- is the ArrayList ofBookingHistory
to be set
-
addBookingHistory
Adds booking history of the Movie Goer- Parameters:
history
- is theBookingHistory
to be added
-
getReviewHistory
Gets all theMovieReview
made by the Movie Goer- Returns:
- ArrayList of
MovieReview
made by the Movie Goer
-
setReviewHistory
Sets all theMovieReview
made by the Movie Goer- Parameters:
reviewHistory
- is the ArrayList ofMovieReview
to be set
-
addReviewHistory
AddsMovieReview
to the Movie Goer's review history- Parameters:
movieReview
- is theMovieReview
to be added
-
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
-