public class BaseNotification extends Object implements Notification
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
desktopNotification |
protected String |
messageType |
protected boolean |
mobileNotification |
| Constructor and Description |
|---|
BaseNotification(String messageType) |
BaseNotification(String messageType,
boolean desktopNotification,
boolean mobileNotification) |
| Modifier and Type | Method and Description |
|---|---|
String |
getMessageType()
The type of the message that this notification belongs to.
|
boolean |
isDesktopNotification()
true if a desktop notification is needed. |
boolean |
isMobileNotification()
true if a mobile notification is needed. |
protected final String messageType
protected final boolean desktopNotification
protected final boolean mobileNotification
public BaseNotification(String messageType)
public BaseNotification(String messageType, boolean desktopNotification, boolean mobileNotification)
public String getMessageType()
NotificationgetMessageType in interface Notificationpublic boolean isDesktopNotification()
Notificationtrue if a desktop notification is needed. This flag will only be set, if sent as
a real time data object and not when loaded from the database. If received over the real time channel in a
web- or desktop client and set to true, the client should show a notification. A value of null
or false means to not show a desk notification.isDesktopNotification in interface Notificationtrue if the web- or desktop client should show a notification when receivedpublic boolean isMobileNotification()
Notificationtrue if a mobile notification is needed. This flag will only be set, if sent as
a real time data object and not when loaded from the database. If received over the real time channel in a
mobile client and set to true, the client should show a notification. A value of null
or false means to not show a mobile notification. If a recipient receiving a message object
with this flag set to true and not being online, a mobile push notification should be sent, if the
recipient has a mobile device registered.isMobileNotification in interface Notificationtrue if the web- or desktop client should show a notification when received