Class NotificationInfoImpl

    • Field Detail

      • userId

        protected final String userId
      • notifications

        protected final Set<String> notifications
    • Constructor Detail

      • NotificationInfoImpl

        public NotificationInfoImpl​(String userId,
                                    Set<String> notifications)
    • Method Detail

      • getUserId

        public String getUserId()
        Description copied from interface: NotificationInfo
        The id of the user to which the notificiation needs to be sent
        Specified by:
        getUserId in interface NotificationInfo
        Returns:
        the id of the user
      • isDesktopNotification

        public boolean isDesktopNotification()
        Description copied from interface: NotificationInfo
        Whether the given user needs to receive a desktop notification. This does not affect the real time messaging. If a user is connected a notification will always be send to him / her.
        Specified by:
        isDesktopNotification in interface NotificationInfo
        Returns:
        whether a desktop notifications needs to be displayed
      • isMobileNotification

        public boolean isMobileNotification()
        Description copied from interface: NotificationInfo
        Whether a mobile notification is needed for the user.
        Specified by:
        isMobileNotification in interface NotificationInfo
        Returns:
        whether a mobile notification needs to be send
      • isMarkAsRead

        public boolean isMarkAsRead()
        Description copied from interface: NotificationInfo
        Whether the message should be marked as read after sending the notification
        Specified by:
        isMarkAsRead in interface NotificationInfo
        Returns:
        whether the message should be marked as read