Interface RefreshReferenceMessageHandler

  • All Implemented Interfaces:

    
    public interface RefreshReferenceMessageHandler
    
                        

    Refresh 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:

    If all messages exist locally, only onLocalMessages is called. If some messages are not found locally, onRemoteMessages is called additionally.

    • 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

      • 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
      • onError

         abstract Unit onError(NCError error)

        Called when the operation fails.

        Parameters:
        error - Error info