Package 

Interface SendMessageInterceptor


  • 
    public interface SendMessageInterceptor
    
                        

    Intercepts the outgoing requests and potentially modifies the Message being sent to the API.

    • Method Summary

      Modifier and Type Method Description
      abstract Result<Message> interceptMessage(String channelType, String channelId, Message message, Boolean isRetrying) Intercept the message before sending it to the API.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • interceptMessage

         abstract Result<Message> interceptMessage(String channelType, String channelId, Message message, Boolean isRetrying)

        Intercept the message before sending it to the API.

        Parameters:
        channelType - The type of the channel in which message is sent.
        channelId - The id of the the channel in which message is sent.
        message - Message to be sent.
        isRetrying - If this message is being retried instead of a new message.