InboxMessage

data class InboxMessage(id: Long, campaignId: String, textContent: TextContent, action: List<Action>, isClicked: Boolean, tag: String, receivedTime: String, expiry: String, mediaContent: MediaContent?, payload: JSONObject)

Data object for Inbox Messages

Author

Umang Chamaria

Since

1.0.00

Constructors

InboxMessage
Link copied to clipboard
fun InboxMessage(id: Long, campaignId: String, textContent: TextContent, action: List<Action>, isClicked: Boolean, tag: String, receivedTime: String, expiry: String, mediaContent: MediaContent? = null, payload: JSONObject)

Properties

action
Link copied to clipboard
val action: List<Action>

Click action associated to the message

campaignId
Link copied to clipboard
val campaignId: String

Unique identifier for the message.

expiry
Link copied to clipboard
val expiry: String

Time the message would expire.

id
Link copied to clipboard
val id: Long
isClicked
Link copied to clipboard
var isClicked: Boolean

True is the message has been clicked, else false.

mediaContent
Link copied to clipboard
val mediaContent: MediaContent? = null

Media associated with the message.

payload
Link copied to clipboard
val payload: JSONObject

Complete campaign payload.

receivedTime
Link copied to clipboard
val receivedTime: String

Time the message was received on the device.

tag
Link copied to clipboard
val tag: String

Tag associated with the message, if nothing is defined general category is added.

textContent
Link copied to clipboard
val textContent: TextContent

Text content for message