A Cloud Messaging message.
| @interface | CloudMessage.MessagePriority | Priority of the message | |
| int | PRIORITY_HIGH | |
| int | PRIORITY_NORMAL | |
| int | PRIORITY_UNKNOWN |
| String |
getCollapseKey()
Gets the collapse key of the message.
|
| synchronized Map<String, String> |
getData()
Gets the message payload data.
|
| String |
getFrom()
Get the sender of this message.
|
| Intent |
getIntent()
Gets the broadcast Intent that this message was sent through.
|
| String |
getMessageId()
Gets the message's ID.
|
| String |
getMessageType()
Gets the type of message.
|
| int |
getOriginalPriority()
Gets the original priority of message.
|
| int |
getPriority()
Gets the priority of message as delivered.
|
| byte[] |
getRawData()
Gets the raw data.
|
| String |
getSenderId()
Gets the Sender ID for the sender of this message.
|
| long |
getSentTime()
Gets the time in milliseconds from the Epoch that the message was sent.
|
| String |
getTo()
Gets the message destination.
|
| int |
getTtl()
Gets the message time to live (TTL) in seconds.
|
| void |
writeToParcel(Parcel out, int
flags)
|
Gets the collapse key of the message.
Gets the message payload data.
Get the sender of this message.
This will be the sender ID or the topic for topic messages.
Gets the broadcast Intent that this message was sent through.
Gets the message's ID.
This is automatically generated by the server. Treat it as an opaque string. Do not rely on its format to be consistent.
Gets the type of message.
Gets the original priority of message.
Gets the priority of message as delivered. This may be lower than the priority originally requested.
Gets the raw data.
Gets the Sender ID for the sender of this message.
Gets the time in milliseconds from the Epoch that the message was sent.
Gets the message destination.
Gets the message time to live (TTL) in seconds.