public class NotificationInfoImpl extends Object implements NotificationInfo
Modifier and Type | Field and Description |
---|---|
protected Set<String> |
notifications |
protected String |
userId |
Constructor and Description |
---|
NotificationInfoImpl(String userId,
Set<String> notifications) |
Modifier and Type | Method and Description |
---|---|
String |
getUserId()
The id of the user to which the notificiation needs to be sent
|
boolean |
isDesktopNotification()
Whether the given user needs to receive a desktop notification.
|
boolean |
isMarkAsRead()
Whether the message should be marked as read after sending the notification
|
boolean |
isMobileNotification()
Whether a mobile notification is needed for the user.
|
protected final String userId
public String getUserId()
NotificationInfo
getUserId
in interface NotificationInfo
public boolean isDesktopNotification()
NotificationInfo
isDesktopNotification
in interface NotificationInfo
public boolean isMobileNotification()
NotificationInfo
isMobileNotification
in interface NotificationInfo
public boolean isMarkAsRead()
NotificationInfo
isMarkAsRead
in interface NotificationInfo
Copyright © 2019. All rights reserved.