onGetMessageResult

open suspend override fun onGetMessageResult(messageId: String, result: Result<Message>)

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. Will contain an instance of Message wrapped inside Result if the request was successful, or an instance of Error if the request had failed.