PinnedMessageListState
data class PinnedMessageListState(val canLoadMore: Boolean = true, val results: List<MessageResult> = emptyList(), val isLoading: Boolean = true, val nextDate: Date = Date())
Represents the pinned message list state, used to render the required UI.
Parameters
canLoadMore
Indicator if we've reached the end of messages, to stop triggering pagination. Defaults to true.
results
The messages to render. Defaults to an empty list.
isLoading
Indicator if we're currently loading data (initial load). Defaults to true.
nextDate
Date used to fetch next page of the messages. Defaults to current date.
Constructors
Link copied to clipboard
constructor(canLoadMore: Boolean = true, results: List<MessageResult> = emptyList(), isLoading: Boolean = true, nextDate: Date = Date())