MessageListItemWrapper

data class MessageListItemWrapper(val items: List<MessageListItem> = listOf(), val hasNewMessages: Boolean = false, val isTyping: Boolean = false, val isThread: Boolean = false, val areNewestMessagesLoaded: Boolean = true, newMessageState: NewMessageState? = null)

MessageListItemWrapper wraps a list of MessageListItem with a few extra fields.

Parameters

items

The list of MessageListItems to be shown in the list.

hasNewMessages

Whether the user has new messages or not.

isTyping

Whether the user is typing or not.

isThread

Whether the user is in a thread or not.

areNewestMessagesLoaded

Whether the newest messages are loaded or not.

Constructors

Link copied to clipboard
constructor(items: List<MessageListItem> = listOf(), hasNewMessages: Boolean = false, isTyping: Boolean = false, isThread: Boolean = false, areNewestMessagesLoaded: Boolean = true, newMessageState: NewMessageState? = null)

Properties

Link copied to clipboard
Link copied to clipboard
val hasNewMessages: Boolean = false
Link copied to clipboard
val isThread: Boolean = false
Link copied to clipboard
val isTyping: Boolean = false
Link copied to clipboard

Functions

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