-
- All Implemented Interfaces:
public interface GetMessageListenerListener used when fetching a single new message from the backend.
-
-
Method Summary
Modifier and Type Method Description abstract UnitonGetMessageResult(String messageId, Result<Message> result)Method called when the API call requesting a single new message has completed. -
-
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.
-
-
-
-