Message

open class Message : Comparable<T>

The primary data structure for messages.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val messageId: String
Link copied to clipboard
Link copied to clipboard
open val messageReporting: JsonValue
Link copied to clipboard
open val messageUrl: String
Link copied to clipboard
open val title: String

Functions

Link copied to clipboard
open fun compareTo(another: Message): Int
Link copied to clipboard
open fun delete()
Delete the message.
Link copied to clipboard
open fun equals(o: Any): Boolean
Link copied to clipboard
Get the message's expiration date in UTC.
Link copied to clipboard
Get the message's expiration date (unix epoch time in milliseconds).
Link copied to clipboard
open fun getExtras(): Bundle
Get the message's extras.
Link copied to clipboard
Gets the list icon URL if available.
Link copied to clipboard
open fun getRawMessageJson(): JsonValue
Gets the entire raw message payload as JSON.
Link copied to clipboard
open fun getSentDate(): Date
Get the message's sent date in UTC.
Link copied to clipboard
open fun getSentDateMS(): Long
Get the message's sent date (unix epoch time in milliseconds).
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun isDeleted(): Boolean
Indicates whether the message has been deleted.
Link copied to clipboard
open fun isExpired(): Boolean
Indicates whether the message has been expired.
Link copied to clipboard
open fun isRead(): Boolean
Indicates whether the message has been read.
Link copied to clipboard
open fun markRead()
Mark the message as read.
Link copied to clipboard
open fun markUnread()
Mark the message as unread.