Class User

Direct Known Subclasses:
MovieGoerEY, Staff

public class User extends Object
A User Object

A User object contains all the parameters necessary to store user information

  • Constructor Details

    • User

      public User(UserType userType, String userName)
      Constructor for User object(require 2 parameter)
      Parameters:
      userType - type of user (Moviegoer or staff)
      userName - user name of the user
    • User

      public User(String userID, UserType userType, String userName)
      Constructor for User object(require 3 parameter)
      Parameters:
      userID - user ID of the user
      userType - type of user (Moviegoer or staff)
      userName - user name of the user
  • Method Details

    • getUserID

      public String getUserID()
      Method to get the user ID
      Returns:
      The UserID as a String
    • setUserID

      public void setUserID(String userID)
      Method to set the User ID
      Parameters:
      userID - The UserID to be set
    • getUserType

      public UserType getUserType()
      Method to get user type
      Returns:
      UserType return enum value of Staff or Moviegoer
    • setUserType

      public void setUserType(UserType userType)
      Method to set user type
      Parameters:
      userType - enum value of user type
    • getUserName

      public String getUserName()
      Method to get user name
      Returns:
      String The user name of the user
    • setUserName

      public void setUserName(String userName)
      Method to set user name
      Parameters:
      userName - the name of the user