ChannelScreenResourceRepository

Properties

Link copied to clipboard
abstract val hasNext: Boolean

Indicates whether there are more messages to load in the next (latest) direction.

Link copied to clipboard
abstract val hasPrevious: Boolean

Indicates whether there are more messages to load in the previous (oldest) direction.

Functions

Link copied to clipboard
abstract suspend fun deleteMessage(chatBaseMessage: ChatBaseMessage)

Deletes the given chatBaseMessage.

Link copied to clipboard
abstract fun dispose()

Disposes the MessageCollection

Link copied to clipboard
abstract fun endTyping()

Ends the typing status.

Link copied to clipboard
abstract fun loadInitial(startingPoint: Long): <Error class: unknown class><MessagesEvent>

Loads the initial messages from the given startingPoint by MessageCollection.initialize.

Link copied to clipboard
abstract suspend fun loadNext()

Loads the next (latest) messages from the MessageCollection.

Link copied to clipboard
abstract suspend fun loadPrevious()

Loads the previous (oldest) messages from the MessageCollection.

Link copied to clipboard
abstract suspend fun resendMessage(chatBaseMessage: ChatBaseMessage)

Resends the given chatBaseMessage which has ChatBaseMessage.sendingStatus as SendingStatus.FAILED.

Link copied to clipboard
abstract suspend fun sendFileMessage(file: File)

Sends a file message with the given file.

Link copied to clipboard
abstract suspend fun sendUserMessage(message: String)

Sends a user message with the given message.

Link copied to clipboard
abstract fun startTyping()

Starts the typing status.

Link copied to clipboard
abstract suspend fun updateUserMessage(messageId: Long, params: <Error class: unknown class>)

Updates the given messageId with the given params.