Interface DraftMessageListener
-
- All Implemented Interfaces:
public interface DraftMessageListenerListener for draft message.
-
-
Method Summary
Modifier and Type Method Description abstract UnitonCreateDraftMessageResult(Result<DraftMessage> result, String channelType, String channelId, DraftMessage message)Side effect to be invoked when the original request is completed with a response. abstract UnitonDeleteDraftMessagesResult(Result<Unit> result, String channelType, String channelId, DraftMessage message)Side effect to be invoked when the original request is completed with a response. abstract UnitonQueryDraftMessagesResult(Result<List<DraftMessage>> result, Integer offset, Integer limit)Side effect to be invoked when the original request is completed with a response. abstract UnitonQueryDraftMessagesResult(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. -
-
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
@Deprecated(message = "The offset param in the onQueryDraftMessagesResult method is not used. Use the onQueryDraftMessagesResult(Result, FilterObject, Int, String?, QuerySorter) method instead.") 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.
-
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.
-
-
-
-