public class Message extends Object implements Serializable
For details have a look at the AeroGear UnifiedPush Message Format.
| Constructor and Description |
|---|
Message() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAlert()
Returns the value of the 'alert' key from the submitted payload.
|
APNs |
getApns()
Apns specific parameters to configure how the message will be displayed.
|
int |
getBadge()
Returns the value of the 'badge' key from the submitted payload.
|
String |
getConsolidationKey()
Used for ADM Payload when used for "sync" Push messages.
|
Priority |
getPriority() |
String |
getSimplePush()
Returns the SimplePush specific version number.
|
String |
getSound()
Returns the value of the 'sound' key from the submitted payload.
|
Map<String,Object> |
getUserData()
Returns a Map, representing any other key-value pairs that were send
to the RESTful Sender API.
|
Windows |
getWindows()
Windows specific parameters to configure how the message will be displayed.
|
void |
setAlert(String alert) |
void |
setApns(APNs apns) |
void |
setBadge(int badge) |
void |
setConsolidationKey(String consolidationKey) |
void |
setPriority(Priority priority) |
void |
setSimplePush(String simplePush) |
void |
setSound(String sound) |
void |
setUserData(Map<String,Object> userData) |
void |
setWindows(Windows windows) |
String |
toString() |
public String getAlert()
public void setAlert(String alert)
public String getSound()
public void setSound(String sound)
public int getBadge()
public void setBadge(int badge)
public Map<String,Object> getUserData()
"sport-news-channel15" : "San Francisco 49er won last game"
public String getSimplePush()
public void setSimplePush(String simplePush)
public String getConsolidationKey()
public void setConsolidationKey(String consolidationKey)
public APNs getApns()
public void setApns(APNs apns)
public Windows getWindows()
public void setWindows(Windows windows)
public Priority getPriority()
public void setPriority(Priority priority)
Copyright © 2018 JBoss by Red Hat. All rights reserved.