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) TheNotificationconstructor retrieves notification data belonging to an notifID -
Method Summary
Modifier and TypeMethodDescriptionThegetContentmethod returns the content of a notificationThegetEventIDmethod returns the eventID of the notificationgetLabel()ThegetLabelmethod returns the label of the notificationThegetNotifIDmethod returns the notifID of the notificationThegetTargetmethod returns the target of the notificationThegetTargetListmethod gets the targetList of the notificationvoidsetContent(String content) ThesetContentmethod sets the content of the notificationvoidsetEventID(String eventID) ThesetEventIDmethod sets the eventID of the notificationvoidThesetLabelmethod sets the label of the notificationvoidThesetTargetmethod sets the target of the notificationvoidsetTargetList(ArrayList<String> targetList) ThegetTargetListmethod sets the targetList of the notification
-
Constructor Details
-
Notification
TheNotificationconstructor retrieves notification data belonging to an notifID- Parameters:
notifID- String containing the id of a notification
-
-
Method Details
-
getLabel
ThegetLabelmethod returns the label of the notification- Returns:
-
setLabel
ThesetLabelmethod sets the label of the notification- Parameters:
label- String containing text for the title of a notification
-
getContent
ThegetContentmethod returns the content of a notification- Returns:
-
setContent
ThesetContentmethod sets the content of the notification- Parameters:
content- String containing text for the content of a notification
-
getTarget
ThegetTargetmethod returns the target of the notification- Returns:
-
setTarget
ThesetTargetmethod sets the target of the notification- Parameters:
target- String containing the target status of a notification
-
getNotifID
ThegetNotifIDmethod returns the notifID of the notification- Returns:
-
getEventID
ThegetEventIDmethod returns the eventID of the notification- Returns:
-
setEventID
ThesetEventIDmethod sets the eventID of the notification- Parameters:
eventID- String containing the eventID of the eevent associated with a notification
-
getTargetList
ThegetTargetListmethod gets the targetList of the notification- Returns:
-
setTargetList
ThegetTargetListmethod sets the targetList of the notification- Parameters:
targetList- ArrayList of entrantIDs
-