Class User
java.lang.Object
com.example.skeddly.business.database.DatabaseObject
com.example.skeddly.business.user.User
A user that can be serialized into the DB
-
Constructor Summary
ConstructorsConstructorDescriptionUser()Constructor for the UserUser(PersonalInformation personalInformation, UserLevel privilegeLevel) Constructor for the User -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the FCM Token tied to this user.Gets the notification settingsGets the personal informationGets the privilege levelvoidsetFcmToken(String fcmToken) Sets the FCM token tied to this user.voidsetNotificationSettings(NotificationSettings notificationSettings) Sets the notification settingsvoidsetPersonalInformation(PersonalInformation personalInformation) Sets the personal informationvoidsetPrivilegeLevel(UserLevel privilegeLevel) Sets the privilege levelMethods inherited from class com.example.skeddly.business.database.DatabaseObject
fetchDatabaseObjectRelatedMethods, getId, setId
-
Constructor Details
-
User
public User()Constructor for the User -
User
Constructor for the User- Parameters:
personalInformation- The personal information of the userprivilegeLevel- The privilege level of the user
-
-
Method Details
-
getNotificationSettings
Gets the notification settings- Returns:
- The notification settings
-
setNotificationSettings
Sets the notification settings- Parameters:
notificationSettings- The notification settings
-
getPrivilegeLevel
Gets the privilege level- Returns:
- The privilege level
-
setPrivilegeLevel
Sets the privilege level- Parameters:
privilegeLevel- The privilege level
-
getPersonalInformation
Gets the personal information- Returns:
- The personal information
-
setPersonalInformation
Sets the personal information- Parameters:
personalInformation- The personal information
-
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
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
-