Interface Notification
-
- All Known Implementing Classes:
BaseNotification
public interface NotificationNotification flags that provide information for sending messages- Author:
- Filip Hrisafov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetMessageType()The type of the message that this notification belongs to.booleanisDesktopNotification()trueif a desktop notification is needed.booleanisMobileNotification()trueif a mobile notification is needed.
-
-
-
Method Detail
-
getMessageType
String getMessageType()
The type of the message that this notification belongs to.- Returns:
- the message type
-
isDesktopNotification
boolean isDesktopNotification()
trueif 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 totrue, the client should show a notification. A value ofnullorfalsemeans to not show a desk notification.- Returns:
- returns
trueif the web- or desktop client should show a notification when received
-
isMobileNotification
boolean isMobileNotification()
trueif 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 totrue, the client should show a notification. A value ofnullorfalsemeans to not show a mobile notification. If a recipient receiving a message object with this flag set totrueand not being online, a mobile push notification should be sent, if the recipient has a mobile device registered.- Returns:
- returns
trueif the web- or desktop client should show a notification when received
-
-