public class BaseNotificationMessage<T> extends Object implements NotificationMessage<T>
| Modifier and Type | Field and Description |
|---|---|
protected Notification |
notification |
protected T |
payload |
| Constructor and Description |
|---|
BaseNotificationMessage(T payload,
Notification notification) |
| Modifier and Type | Method and Description |
|---|---|
Notification |
getNotification()
The notification information use for deciding how a message should be displayed.
|
T |
getPayload()
The payload for the notification message.
|
String |
getType()
The type of the message
|
protected final T payload
protected final Notification notification
public BaseNotificationMessage(T payload, Notification notification)
public T getPayload()
NotificationMessagegetPayload in interface NotificationMessage<T>public Notification getNotification()
NotificationMessagegetNotification in interface NotificationMessage<T>public String getType()
NotificationMessagegetType in interface NotificationMessage<T>