Interface SendMessageInterceptor
-
- All Implemented Interfaces:
public interface SendMessageInterceptorInterceptor for sending messages in the Stream Chat SDK. Allows overriding the default 'sendMessage' API call.
-
-
Method Summary
Modifier and Type Method Description abstract Result<Message>sendMessage(String channelType, String channelId, Message message)Sends a message to the server. -
-
Method Detail
-
sendMessage
abstract Result<Message> sendMessage(String channelType, String channelId, Message message)
Sends a message to the server.
- 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.- Returns:
The Result object containing an instance of Message in the case of a successful upload or a failure if the upload had failed.
-
-
-
-