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 retrieves and stores the notification data within the Firebase using the notifID-
Constructor Summary
ConstructorsConstructorDescriptionNotification
(String notifID) TheNotification
constructor retrieves notification data belonging to an notifID -
Method Summary
Modifier and TypeMethodDescriptionThegetContent
method returns the content of a notificationThegetEventID
method returns the eventID of the notificationgetLabel()
ThegetLabel
method returns the label of the notificationThegetNotifID
method returns the notifID of the notificationThegetTarget
method returns the target of the notificationThegetTargetList
method gets the targetList 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
ThesetTarget
method sets the target of the notificationvoid
setTargetList
(ArrayList<String> targetList) ThegetTargetList
method sets the targetList of the notification
-
Constructor Details
-
Notification
TheNotification
constructor retrieves notification data belonging to an notifID- Parameters:
notifID
- String containing the id of a notification
-
-
Method Details
-
getLabel
ThegetLabel
method returns the label of the notification- Returns:
-
setLabel
ThesetLabel
method sets the label of the notification- Parameters:
label
- String containing text for the title of a notification
-
getContent
ThegetContent
method returns the content of a notification- Returns:
-
setContent
ThesetContent
method sets the content of the notification- Parameters:
content
- String containing text for the content of a notification
-
getTarget
ThegetTarget
method returns the target of the notification- Returns:
-
setTarget
ThesetTarget
method sets the target of the notification- Parameters:
target
- String containing the target status of a notification
-
getNotifID
ThegetNotifID
method returns the notifID of the notification- Returns:
-
getEventID
ThegetEventID
method returns the eventID of the notification- Returns:
-
setEventID
ThesetEventID
method sets the eventID of the notification- Parameters:
eventID
- String containing the eventID of the eevent associated with a notification
-
getTargetList
ThegetTargetList
method gets the targetList of the notification- Returns:
-
setTargetList
ThegetTargetList
method sets the targetList of the notification- Parameters:
targetList
- ArrayList of entrantIDs
-