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()
NotificationInfogetUserId in interface NotificationInfopublic boolean isDesktopNotification()
NotificationInfoisDesktopNotification in interface NotificationInfopublic boolean isMobileNotification()
NotificationInfoisMobileNotification in interface NotificationInfopublic boolean isMarkAsRead()
NotificationInfoisMarkAsRead in interface NotificationInfoCopyright © 2019. All rights reserved.