Package com.example.rocket_launch
Class User
java.lang.Object
com.example.rocket_launch.User
Defines a new user class containing all user information
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddJoinedEvent(String id) voidaddNotification(Notification notification) voidadds event to waitlistandroid.media.ImagegetRoles()voidvoidvoidvoidvoidremoves event from waitlistvoidsetAndroidId(String androidId) voidsetEventsCreated(List<String> eventsCreated) voidsetEventsRegistered(List<String> eventsRegistered) voidsetEventsWaitlisted(List<String> eventsWaitlisted) voidsetNotificationPreferences(Boolean notificationPreferences) voidsetNotifications(List<Notification> notifications) voidsetProfilePhoto(android.media.Image profilePhoto) voidsetProfilePhotoPath(String profilePhotoPath) voidvoidsetUserEmail(String userEmail) voidsetUserFacility(String userFacility) voidsetUserFacilityAddress(String userFacilityAddress) voidsetUserName(String userName) voidsetUserPhoneNumber(String userPhoneNumber)
-
Constructor Details
-
User
public User()
-
-
Method Details
-
getUserName
-
setUserName
-
getUserEmail
-
setUserEmail
-
getUserPhoneNumber
-
setUserPhoneNumber
-
getProfilePhoto
public android.media.Image getProfilePhoto() -
setProfilePhoto
public void setProfilePhoto(android.media.Image profilePhoto) -
getUserFacility
-
setUserFacility
-
getUserFacilityAddress
-
setUserFacilityAddress
-
getAndroidId
-
setAndroidId
-
getRoles
-
setRoles
-
getNotifications
-
setNotifications
-
addNotification
-
getNotificationPreferences
-
setNotificationPreferences
-
optInNotifications
public void optInNotifications() -
optOutNotifications
public void optOutNotifications() -
getEventsRegistered
-
setEventsRegistered
-
addJoinedEvent
-
removeJoinedEvent
-
getEventsCreated
-
setEventsCreated
-
addCreatedEvent
-
removeCreatedEvent
-
getEventsWaitlisted
-
setEventsWaitlisted
-
addWaitlistEvent
adds event to waitlist- Parameters:
id- id of event to add to
-
removeWaitlistEvent
removes event from waitlist- Parameters:
id- id of event to remove
-
getProfilePhotoPath
-
setProfilePhotoPath
-