Message

Marigold Message representation

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

The content's URL if this is a TYPE_LINK Message.

Link copied to clipboard

Created date of the Message.

Link copied to clipboard

The formatted HTML text of the Message

Link copied to clipboard

URL of the Message's image.

Link copied to clipboard

Internal method for setting read state via MessageStream setMessagesRead().

Link copied to clipboard

Boolean stating if this Message has sharing enabled.

Link copied to clipboard

If Message is of type TYPE_VIDEO, this links to the video content.

Link copied to clipboard

The ID of the Message

Link copied to clipboard
var text: String?

The body text of the Message.

Link copied to clipboard

The title of the Message

Link copied to clipboard
var type: String?

The type of this message: Text, Image, Video, Link, or Fake Call.

Functions

Link copied to clipboard
open operator override fun compareTo(other: Message): Int

Compares this object to the specified object to determine their relative order by created date in descending order.

Link copied to clipboard
open override fun describeContents(): Int
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

Converts Message to JSON. Do not alter the signature of this method without updating the Cordova/Unity/etc wrappers. Wrappers use reflection to access this method.

Link copied to clipboard
open override fun writeToParcel(dest: Parcel, flags: Int)