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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBookingHistory(BookingHistory history) Adds booking history of the Movie GoervoidaddReviewHistory(MovieReview movieReview) AddsMovieReviewto the Movie Goer's review historyGets all theBookingHistorymade by the Movie GoergetEmail()Gets the email address of the Movie Goerabstract doubleGets the price weight of the Movie GoerGets the mobile number of the Movie Goerabstract MovieGoerAgeGets the Movie Goer Age GroupgetName()Gets the name of the Movie GoerGets the password of the Movie GoerGets all theMovieReviewmade by the Movie GoerGets the username of the Movie GoergetUUID()Gets unique ID of Movie Goer in databasevoidsetBookingHistory(ArrayList<BookingHistory> bookingHistory) Sets all theBookingHistorymade by the Movie GoervoidSets the email address of the Movie Goerabstract voidsetGoerPrice(double price) Sets the price weight of the Movie GoervoidsetMobileNum(String mobileNum) Sets the mobile number of the Movie GoervoidSets the name of the Movie GoervoidsetPassword(String password) Sets password of Movie Goer's accountvoidsetReviewHistory(ArrayList<MovieReview> reviewHistory) Sets all theMovieReviewmade by the Movie GoervoidsetUsername(String username) Sets the username of the Movie GoervoidSets 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 theBookingHistorymade by the Movie Goer- Returns:
- ArrayList of
BookingHistoryof the Movie Goer
-
setBookingHistory
Sets all theBookingHistorymade by the Movie Goer- Parameters:
bookingHistory- is the ArrayList ofBookingHistoryto be set
-
addBookingHistory
Adds booking history of the Movie Goer- Parameters:
history- is theBookingHistoryto be added
-
getReviewHistory
Gets all theMovieReviewmade by the Movie Goer- Returns:
- ArrayList of
MovieReviewmade by the Movie Goer
-
setReviewHistory
Sets all theMovieReviewmade by the Movie Goer- Parameters:
reviewHistory- is the ArrayList ofMovieReviewto be set
-
addReviewHistory
AddsMovieReviewto the Movie Goer's review history- Parameters:
movieReview- is theMovieReviewto be added
-
getMovieGoerAge
Gets the Movie Goer Age Group- Returns:
MovieGoerAgeof 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
-