Package 

Interface DraftMessageListener

    • Method Summary

      Modifier and Type Method Description
      abstract Unit onCreateDraftMessageRequest(String channelType, String channelId, DraftMessage message) Side effect to be invoked before the original request is launched.
      abstract Unit onCreateDraftMessageResult(Result<DraftMessage> result, String channelType, String channelId, DraftMessage message) Side effect to be invoked when the original request is completed with a response.
      abstract Unit onDeleteDraftMessagesRequest(String channelType, String channelId, DraftMessage message) Side effect to be invoked before the original request is launched.
      abstract Unit onDeleteDraftMessagesResult(Result<Unit> result, String channelType, String channelId, DraftMessage message) Side effect to be invoked when the original request is completed with a response.
      abstract Unit onQueryDraftMessagesResult(Result<QueryDraftsResult> result, FilterObject filter, Integer limit, String next, QuerySorter<DraftsSort> sort) Side effect to be invoked when the original request is completed with a response.
      • Methods inherited from class java.lang.Object

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

      • onCreateDraftMessageRequest

         abstract Unit onCreateDraftMessageRequest(String channelType, String channelId, DraftMessage message)

        Side effect to be invoked before the original request is launched.

        Parameters:
        channelType - The type of the channel in which message is created.
        channelId - The id of the channel in which message is created.
        message - DraftMessage to be created.
      • onCreateDraftMessageResult

         abstract Unit onCreateDraftMessageResult(Result<DraftMessage> result, String channelType, String channelId, DraftMessage message)

        Side effect to be invoked when the original request is completed with a response.

        Parameters:
        result - Result response from the original request.
        channelType - The type of the channel in which message is created.
        channelId - The id of the channel in which message is created.
        message - DraftMessage to be created.
      • onDeleteDraftMessagesRequest

         abstract Unit onDeleteDraftMessagesRequest(String channelType, String channelId, DraftMessage message)

        Side effect to be invoked before the original request is launched.

        Parameters:
        channelType - The type of the channel in which message is deleted.
        channelId - The id of the channel in which message is deleted.
        message - DraftMessage to be deleted.
      • onDeleteDraftMessagesResult

         abstract Unit onDeleteDraftMessagesResult(Result<Unit> result, String channelType, String channelId, DraftMessage message)

        Side effect to be invoked when the original request is completed with a response.

        Parameters:
        result - Result response from the original request.
        channelType - The type of the channel in which message is deleted.
        channelId - The id of the channel in which message is deleted.
        message - DraftMessage to be deleted.
      • onQueryDraftMessagesResult

         abstract Unit onQueryDraftMessagesResult(Result<QueryDraftsResult> result, FilterObject filter, Integer limit, String next, QuerySorter<DraftsSort> sort)

        Side effect to be invoked when the original request is completed with a response.

        Parameters:
        result - Result response from the original request.
        filter - The filter object used in the query.
        limit - The limit of the query.
        next - The next page token.
        sort - The sorter used in the query.