Package ai.nexconn.chat.handler
Interface RefreshReferenceMessageHandler
-
- All Implemented Interfaces:
public interface RefreshReferenceMessageHandlerRefresh referenced (quoted) message callback.
When a message contains a reference to another message, this handler refreshes the referenced message content. The refresh operates in two stages:
onLocalMessages - Callback with results for messages found locally
onRemoteMessages - Callback with results for messages fetched from the server
If all messages exist locally, only onLocalMessages is called. If some messages are not found locally, onRemoteMessages is called additionally.
-
-
Method Summary
Modifier and Type Method Description abstract UnitonLocalMessages(List<ReferenceMessageResult> results)Called with locally found messages. abstract UnitonRemoteMessages(List<ReferenceMessageResult> results)Called with remotely fetched messages. abstract UnitonError(NCError error)Called when the operation fails. -
-
Method Detail
-
onLocalMessages
abstract Unit onLocalMessages(List<ReferenceMessageResult> results)
Called with locally found messages.
- Parameters:
results- List of message results found locally
-
onRemoteMessages
abstract Unit onRemoteMessages(List<ReferenceMessageResult> results)
Called with remotely fetched messages.
Called when some messages are not found locally and need to be fetched from the server.
- Parameters:
results- List of message results fetched from the server
-
-
-
-