public interface NotificationContext
Modifier and Type | Method and Description |
---|---|
void |
dispatch(String payload)
Dispatches the message through internal notification gateway if configured.
|
String |
getApplicationId()
Get the unique application id depending on the platform for whom the message is intended.
|
String |
getApplicationVersion()
Gets the application's version for whom the message is intended.
|
String |
getDeviceToken()
Gets the device unique token obtained from the Cloud Provider.
|
String |
getInitiator()
Gets the initiator of the triggering message if any.
|
String |
getPackageType()
Gets the package for the triggering message
|
String |
getPlatform()
Get the platform the application is running on for whom the message is intended.
|
String |
getPlatformVersion()
Get the version of the platform the application is running on.
|
WscProperties |
getProperties()
Get the properties from the current context.
|
RestClient |
getRestClient()
Gets the REST client for submitting outbound REST requests.
|
String |
getTarget()
Gets the target of the triggering message if any.
|
Map<String,Object> |
getTriggerMessage()
Get the incoming message that triggered this notification.
|
String getInitiator()
String getTarget()
String getPackageType()
String getApplicationId()
String getApplicationVersion()
String getPlatform()
String getPlatformVersion()
String getDeviceToken()
Map<String,Object> getTriggerMessage()
RestClient getRestClient()
RestClient
instance.void dispatch(String payload)
payload
- payload in the JSON format as shown below.
e.g. "data" : {
"time": "15:16.2342",
"from": "alice@example.com"
"message": "Incoming Call"
}WscProperties getProperties()