Interface DraftMessageListener

    • 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
    • Method Summary

      Modifier and Type Method Description
      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 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<List<DraftMessage>> result, Integer offset, Integer limit) 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
    • Constructor Detail

    • Method Detail

      • 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 the channel in which message is created.
        message - DraftMessage to be created.
      • 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 updated.
        channelId - The id of the the channel in which message is updated.
        message - DraftMessage to be updated.
      • onQueryDraftMessagesResult

         abstract Unit onQueryDraftMessagesResult(Result<List<DraftMessage>> result, Integer offset, Integer limit)

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

        Parameters:
        result - Result response from the original request.
        offset - The offset of the query.
        limit - The limit of the query.