Class Notification

java.lang.Object
com.example.oblong.Notification

public class Notification extends Object
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 Details

    • Notification

      public Notification(String notifID)
      The Notification constructor retrieves notification data belonging to an notifID
      Parameters:
      notifID - String containing the id of a notification
  • Method Details

    • getLabel

      public String getLabel()
      The getLabel method returns the label of the notification
      Returns:
    • setLabel

      public void setLabel(String label)
      The setLabel method sets the label of the notification
      Parameters:
      label - String containing text for the title of a notification
    • getContent

      public String getContent()
      The getContent method returns the content of a notification
      Returns:
    • setContent

      public void setContent(String content)
      The setContent method sets the content of the notification
      Parameters:
      content - String containing text for the content of a notification
    • getTarget

      public String getTarget()
      The getTarget method returns the target of the notification
      Returns:
    • setTarget

      public void setTarget(String target)
      The setTarget method sets the target of the notification
      Parameters:
      target - String containing the target status of a notification
    • getNotifID

      public String getNotifID()
      The getNotifID method returns the notifID of the notification
      Returns:
    • getEventID

      public String getEventID()
      The getEventID method returns the eventID of the notification
      Returns:
    • setEventID

      public void setEventID(String eventID)
      The setEventID method sets the eventID of the notification
      Parameters:
      eventID - String containing the eventID of the eevent associated with a notification
    • getTargetList

      public ArrayList<String> getTargetList()
      The getTargetList method gets the targetList of the notification
      Returns:
    • setTargetList

      public void setTargetList(ArrayList<String> targetList)
      The getTargetList method sets the targetList of the notification
      Parameters:
      targetList - ArrayList of entrantIDs