Interface DeleteChannelListener

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • onDeleteChannelRequest

         abstract Unit onDeleteChannelRequest(User currentUser, String channelType, String channelId)

        A method called before making an API call to delete a channel.

        Parameters:
        currentUser - The currently logged in user.
        channelType - The channel type.
        channelId - The channel id.
      • onDeleteChannelResult

         abstract Unit onDeleteChannelResult(String channelType, String channelId, Result<Channel> result)

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

        Parameters:
        channelType - The channel type.
        channelId - The channel id.
        result - The API call result.
      • onDeleteChannelPrecondition

         abstract Result<Unit> onDeleteChannelPrecondition(User currentUser, String channelType, String channelId)

        Runs precondition check for ChatClient.deleteChannel. The request will be run if the method returns Result.Success and won't be made if it returns Result.Failure.

        Parameters:
        currentUser - The currently logged in user.
        channelType - The channel type.
        channelId - The channel id.
        Returns:

        Result.Success if the precondition is fulfilled, Result.Failure otherwise.