public class UnifiedPushMessage extends Object implements Serializable
For details have a look at the Message Format Specification. Messages are submitted as follows:
{
"message": {
"alert": "HELLO!",
"sound": "default",
"badge": 2,
"user-data": {
"key": "value",
"key2": "other value"
},
"windows": {
"type": "tile",
"duration": "short",
"badge": "alert",
"tileType": "TileWideBlockAndText01",
"images": ["Assets/test.jpg", "Assets/background.png"],
"textFields": ["foreground text"]
},
"apns": {
"title" : "someTitle",
"action-category": "some value",
"content-available": true,
"action" : "someAction",
"url-args" :["args1","arg2"],
"localized-title-key" : "some value",
"localized-title-arguments" : ["args1","arg2"]
},
"simple-push": "version=123"
},
"criteria": {
"alias": [ "someUsername" ],
"deviceType": [ "someDevice" ],
"categories": [ "someCategories" ],
"variants": [ "someVariantIDs" ]
},
"config": {
"ttl": 3600
}
}
| Constructor and Description |
|---|
UnifiedPushMessage() |
| Modifier and Type | Method and Description |
|---|---|
String |
getClientIdentifier()
The Client Identifier showing who triggered the Push Notification
|
Config |
getConfig() |
Criteria |
getCriteria()
Returns the object that contains all the submitted query criteria.
|
String |
getIpAddress()
The IP address from the agent that did issue the push message request.
|
Message |
getMessage() |
void |
setClientIdentifier(String clientIdentifier) |
void |
setConfig(Config config) |
void |
setCriteria(Criteria criteria) |
void |
setIpAddress(String ipAddress) |
void |
setMessage(Message message) |
String |
toJsonString() |
String |
toString() |
String |
toStrippedJsonString() |
public Criteria getCriteria()
public void setCriteria(Criteria criteria)
public Config getConfig()
public void setConfig(Config config)
public Message getMessage()
public void setMessage(Message message)
public String getIpAddress()
public void setIpAddress(String ipAddress)
public String getClientIdentifier()
public void setClientIdentifier(String clientIdentifier)
public String toStrippedJsonString()
public String toJsonString()
Copyright © 2015 JBoss by Red Hat. All Rights Reserved.