Message

data class Message(    val id: Uid<Message>,     val conversationId: Uid<Conversation>,     val author: ConversationContact?,     val state: MessageState,     val contentText: String,     val timestamp: Instant) : Parcelable

Constructors

Link copied to clipboard
fun Message(    id: Uid<Message>,     conversationId: Uid<Conversation>,     author: ConversationContact?,     state: MessageState,     contentText: String,     timestamp: Instant)

Properties

Link copied to clipboard
val author: ConversationContact?

The author of the message. Never null for incoming messaging, always 'null' for outgoing messages.

Link copied to clipboard
val contentText: String

The textual content of the message.

Link copied to clipboard
val conversationId: Uid<Conversation>

The universally unique ID of the conversation to which the message belongs.

Link copied to clipboard
val id: Uid<Message>

The universally unique ID of the message.

Link copied to clipboard
val state: MessageState

The state of the message.

Link copied to clipboard
val timestamp: Instant

A timestamp relating to the message. For incoming messages, this is the time the message was received. For outgoing messages, this is the time of creation of the Message model.

Functions

Link copied to clipboard
open override fun toString(): String

contentText is masked when the Message is printed.

Inherited functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)