java.lang.Object | |
↳ | com.urbanairship.messagecenter.Message |
The primary data structure for messages.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Message() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | compareTo(Message 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.
| ||||||||||
Map<String, String> |
getExtrasMap()
Get the message's extras.
| ||||||||||
String |
getListIconUrl()
Gets the list icon URL if available.
| ||||||||||
String |
getMessageBodyUrl()
Get the message body URL.
| ||||||||||
String |
getMessageId()
Get the message's Airship ID.
| ||||||||||
String |
getMessageReadUrl()
Get the message mark-as-read URL.
| ||||||||||
String |
getMessageUrl()
Get the message URL.
| ||||||||||
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
java.lang.Comparable
|
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's extras.
Gets the list icon URL if available.
null
.
Get the message mark-as-read URL.
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.