Package 

Interface GetMessageListener

  • All Implemented Interfaces:

    
    public interface GetMessageListener
    
                        

    Listener used when fetching a single new message from the backend.

    • 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 onGetMessageResult(String messageId, Result<Message> result) Method called when the API call requesting a single new message has completed.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • onGetMessageResult

         abstract Unit onGetMessageResult(String messageId, Result<Message> result)

        Method called when the API call requesting a single new message has completed.

        Use it to update the database accordingly.

        Parameters:
        messageId - The ID of the message we are fetching.
        result - The result of the API call.