Package com.example.oblong
Class Notification
java.lang.Object
com.example.oblong.Notification
The
Notification
class handles the notifications that the organizer sends to users
Also retreives and stores the notification data within the Firebase using the evntID-
Constructor Summary
ConstructorDescriptionNotification
(String eventID) TheNotification
method retrieves notification data belonging to an eventID -
Method Summary
Modifier and TypeMethodDescriptionThegetContent
method returns the content of the notificationThegetEventID
method returns the eventID of the notificationgetLabel()
ThegetLabel
method returns the label of the notificationThegetTargets
method returns the targets of the notificationvoid
setContent
(String content) ThesetContent
method sets the content of the notificationvoid
setEventID
(String eventID) ThesetEventID
method sets the eventID of the notificationvoid
ThesetLabel
method sets the label of the notificationvoid
setTargets
(String targets) ThesetTargets
method sets the targets of the notification
-
Constructor Details
-
Notification
TheNotification
method retrieves notification data belonging to an eventID- Parameters:
eventID
-
-
-
Method Details
-
getLabel
ThegetLabel
method returns the label of the notification- Returns:
-
setLabel
ThesetLabel
method sets the label of the notification- Parameters:
label
-
-
getContent
ThegetContent
method returns the content of the notification- Returns:
-
setContent
ThesetContent
method sets the content of the notification- Parameters:
content
-
-
getTargets
ThegetTargets
method returns the targets of the notification- Returns:
-
setTargets
ThesetTargets
method sets the targets of the notification- Parameters:
targets
-
-
getEventID
ThegetEventID
method returns the eventID of the notification- Returns:
-
setEventID
ThesetEventID
method sets the eventID of the notification- Parameters:
eventID
-
-