Class User
java.lang.Object
User
- Direct Known Subclasses:
MovieGoerEY,Staff
A User Object
A User object contains all the parameters
necessary to store user information
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMethod to get the user IDMethod to get user nameMethod to get user typevoidMethod to set the User IDvoidsetUserName(String userName) Method to set user namevoidsetUserType(UserType userType) Method to set user type
-
Constructor Details
-
User
Constructor for User object(require 2 parameter)- Parameters:
userType- type of user (Moviegoer or staff)userName- user name of the user
-
User
Constructor for User object(require 3 parameter)- Parameters:
userID- user ID of the useruserType- type of user (Moviegoer or staff)userName- user name of the user
-
-
Method Details
-
getUserID
Method to get the user ID- Returns:
- The UserID as a String
-
setUserID
Method to set the User ID- Parameters:
userID- The UserID to be set
-
getUserType
Method to get user type- Returns:
- UserType return enum value of Staff or Moviegoer
-
setUserType
Method to set user type- Parameters:
userType- enum value of user type
-
getUserName
Method to get user name- Returns:
- String The user name of the user
-
setUserName
Method to set user name- Parameters:
userName- the name of the user
-