ProgressMessageResult

sealed class ProgressMessageResult<T>

A result class for BaseChannel.resendFileMessage, BaseChannel.sendFileMessage.

Since

4.15.0

Inheritors

Types

Link copied to clipboard
data class Failure<T : BaseMessage>(val failedMessage: T, val e: SendbirdException) : ProgressMessageResult<T>

Contains result that the request was failed.

Link copied to clipboard
data class Pending<T : BaseMessage>(val message: T) : ProgressMessageResult<T>

Contains pending result.

Link copied to clipboard
data class Progress<T>(val bytesSent: Int, val totalBytesSent: Int, val totalBytesToSend: Int) : ProgressMessageResult<T>

Contained values for progressing information while file is being uploaded.

Link copied to clipboard
data class Success<T : BaseMessage>(val message: T) : ProgressMessageResult<T>

Contains result that the request was successful.