DefaultChannelScreenResourceRepository

Constructors

Link copied to clipboard
constructor(channelUrl: String, messageListParams: <Error class: unknown class> = MessageListParams(), startingPoint: Long = Long.MAX_VALUE)

Properties

Link copied to clipboard
open override val hasNext: Boolean

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

Link copied to clipboard
open override val hasPrevious: Boolean

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

Functions

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

Deletes the given chatBaseMessage.

Link copied to clipboard
open override fun dispose()

Disposes the MessageCollection

Link copied to clipboard
open override fun endTyping()

Ends the typing status.

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

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

Link copied to clipboard
open suspend override fun loadNext()

Loads the next (latest) messages from the MessageCollection.

Link copied to clipboard
open suspend override fun loadPrevious()

Loads the previous (oldest) messages from the MessageCollection.

Link copied to clipboard
open override fun prepare(): <Error class: unknown class><ScreenResourceResult<ChannelScreenResource>>

Prepares the screen resource data.

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

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

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

Sends a file message with the given file.

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

Sends a user message with the given message.

Link copied to clipboard
open override fun startTyping()

Starts the typing status.

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

Updates the given messageId with the given params.