sendMessage

abstract fun sendMessage(channelType: String, channelId: String, message: Message): Result<Message>

Sends a message to the server.

Return

The Result object containing an instance of Message in the case of a successful upload or a failure if the upload had failed.

Parameters

channelType

The type of the channel to which the message is sent.

channelId

The ID of the channel to which the message is sent.

message

The message to be sent.

See also

Result.Success
Result.Failure