Class User


public class User extends DatabaseObject
A user that can be serialized into the DB
  • Constructor Details

    • User

      public User()
      Constructor for the User
    • User

      public User(PersonalInformation personalInformation, UserLevel privilegeLevel)
      Constructor for the User
      Parameters:
      personalInformation - The personal information of the user
      privilegeLevel - The privilege level of the user
  • Method Details

    • getNotificationSettings

      public NotificationSettings getNotificationSettings()
      Gets the notification settings
      Returns:
      The notification settings
    • setNotificationSettings

      public void setNotificationSettings(NotificationSettings notificationSettings)
      Sets the notification settings
      Parameters:
      notificationSettings - The notification settings
    • getPrivilegeLevel

      public UserLevel getPrivilegeLevel()
      Gets the privilege level
      Returns:
      The privilege level
    • setPrivilegeLevel

      public void setPrivilegeLevel(UserLevel privilegeLevel)
      Sets the privilege level
      Parameters:
      privilegeLevel - The privilege level
    • getPersonalInformation

      public PersonalInformation getPersonalInformation()
      Gets the personal information
      Returns:
      The personal information
    • setPersonalInformation

      public void setPersonalInformation(PersonalInformation personalInformation)
      Sets the personal information
      Parameters:
      personalInformation - The personal information
    • getFcmToken

      public String getFcmToken()
      Retrieves the FCM Token tied to this user. This token is used for sending push notifications.
      Returns:
      The FCM token tied to this user.
    • setFcmToken

      public void setFcmToken(String fcmToken)
      Sets the FCM token tied to this user. This token is used for sending push notifications.
      Parameters:
      fcmToken - The new FCM token for this user