fetchNotes

abstract fun fetchNotes(category: String? = null, withResolution: Boolean = false, listener: RainbowListener<Map<String, List<Note>>, Unit>? = null)

Refreshes the Note list of the connected user.

The notes are returned in a map where the category is the key. Example: "high" -> List.

Parameters

category

String to retrieve only notes from a specific category.

withResolution

Boolean to resolve all data in the note like IRainbowContact, IRainbowRoom, etc.

listener

RainbowListenerNote>>, Unit>? (optional) callback invoked upon completion of the operation. Set to null if not required. The callback returns a map where the category is the key and the value is a list of Note.