createNoteFromMessage

abstract fun createNoteFromMessage(message: IMMessage?, conversation: IRainbowConversation?, category: String?, position: Int? = 0, listener: RainbowListener<Note, NoteRepository.CreateNoteError>? = null)

Creates a Note associated with a message and a specific category.

The newly created Note is returned in the listener's onSuccess method. noteList will also be notified when the note is added to the list. See also the createNote method.

Parameters

message

IMMessage The message bound to the note.

conversation

IRainbowConversation The conversation associated with the message.

category

String The category of the note.

position

Int The position of the note.

listener

RainbowListener (optional) callback invoked upon completion of the operation. Set to null if not required.