Package 

Interface DeleteReactionListener

    • Method Detail

      • onDeleteReactionRequest

         abstract Unit onDeleteReactionRequest(String cid, String messageId, String reactionType, User currentUser)

        A method called before making an API call to delete the reaction.

        Parameters:
        cid - The full channel id, i.e.
        messageId - The id of the message to which reaction belongs.
        reactionType - The type of reaction.
        currentUser - The currently logged in user.
      • onDeleteReactionResult

         abstract Unit onDeleteReactionResult(String cid, String messageId, String reactionType, User currentUser, Result<Message> result)

        A method called after receiving the response from the delete reaction call.

        Parameters:
        cid - The full channel id, i.e.
        messageId - The id of the message to which reaction belongs.
        reactionType - The type of reaction.
        currentUser - The currently logged in user.
        result - The API call result.
      • onDeleteReactionPrecondition

         abstract Result<Unit> onDeleteReactionPrecondition(User currentUser)

        Runs precondition check for ChatClient.deleteReaction. The request will be run if the method returns Result.success and won't be made if it returns Result.error.

        Parameters:
        currentUser - The currently logged in user.