java.lang.Object | |
↳ | com.urbanairship.richpush.RichPushMessage |
The primary data structure for Rich Push messages.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | compareTo(RichPushMessage another) | ||||||||||
void |
delete()
Delete the message.
| ||||||||||
boolean | equals(Object o) | ||||||||||
Date |
getExpirationDate()
Get the message's expiration date in UTC.
| ||||||||||
Long |
getExpirationDateMS()
Get the message's expiration date (unix epoch time in milliseconds).
| ||||||||||
Bundle |
getExtras()
Get the message's extras.
| ||||||||||
String |
getMessageBodyUrl()
Get the message body URL.
| ||||||||||
String |
getMessageId()
Get the message's Urban Airship ID.
| ||||||||||
String |
getMessageReadUrl()
Get the message mark-as-read URL.
| ||||||||||
String |
getMessageUrl()
Get the message URL.
| ||||||||||
JSONObject |
getRawMessageJSON()
This method is deprecated.
Marked to be removed in 7.0.0. Use
getRawMessageJson() instead.
| ||||||||||
JsonValue |
getRawMessageJson()
Gets the entire raw message payload as JSON.
| ||||||||||
Date |
getSentDate()
Get the message's sent date in UTC.
| ||||||||||
long |
getSentDateMS()
Get the message's sent date (unix epoch time in milliseconds).
| ||||||||||
String |
getTitle()
Get the message's title.
| ||||||||||
int | hashCode() | ||||||||||
boolean |
isDeleted()
Indicates whether the message has been deleted.
| ||||||||||
boolean |
isExpired()
Indicates whether the message has been expired.
| ||||||||||
boolean |
isRead()
Indicates whether the message has been read.
| ||||||||||
void |
markRead()
Mark the message as read.
| ||||||||||
void |
markUnread()
Mark the message as unread.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Delete the message.
Get the message's expiration date in UTC.
Get the message's expiration date (unix epoch time in milliseconds).
Get the message mark-as-read URL.
This method is deprecated.
Marked to be removed in 7.0.0. Use getRawMessageJson()
instead.
Gets the entire raw message payload as a JSONObject
Gets the entire raw message payload as JSON.
Get the message's sent date (unix epoch time in milliseconds).
Indicates whether the message has been deleted.
true
if the message is deleted, false
otherwise.
Indicates whether the message has been expired.
true
if expired, otherwise false
.
Indicates whether the message has been read.
true
if the message is read, false
otherwise.
Mark the message as read.
Mark the message as unread.