Class Notification


  • public class Notification
    extends java.lang.Object
    Represents a notification in the system. This class encapsulates information about a notification, including its content, recipient, and severity level.
    • Constructor Summary

      Constructors 
      Constructor Description
      Notification()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getContent()
      Gets the content of the notification.
      MessageSeverity getSeverity()
      Gets the severity level of the notification.
      java.lang.String getToUserName()
      Gets the username of the notification recipient.
      void setContent​(java.lang.String content)
      Sets the content of the notification.
      void setSeverity​(MessageSeverity severity)
      Sets the severity level of the notification.
      void setToUserName​(java.lang.String toUserName)
      Sets the username of the notification recipient.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Notification

        public Notification()
    • Method Detail

      • getContent

        public java.lang.String getContent()
        Gets the content of the notification.
        Returns:
        the content as a String
      • setContent

        public void setContent​(java.lang.String content)
        Sets the content of the notification.
        Parameters:
        content - the content to set
      • getToUserName

        public java.lang.String getToUserName()
        Gets the username of the notification recipient.
        Returns:
        the username as a String
      • setToUserName

        public void setToUserName​(java.lang.String toUserName)
        Sets the username of the notification recipient.
        Parameters:
        toUserName - the username to set
      • getSeverity

        public MessageSeverity getSeverity()
        Gets the severity level of the notification.
        Returns:
        the severity as a MessageSeverity enum
      • setSeverity

        public void setSeverity​(MessageSeverity severity)
        Sets the severity level of the notification.
        Parameters:
        severity - the severity to set