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()
NotificationMessage
getPayload
in interface NotificationMessage<T>
public Notification getNotification()
NotificationMessage
getNotification
in interface NotificationMessage<T>
public String getType()
NotificationMessage
getType
in interface NotificationMessage<T>