createTaskFromMessage

abstract fun createTaskFromMessage(    message: IMMessage,     conversation: IRainbowConversation,     category: String,     position: Int? = 0,     listener: RainbowListener<Task, TaskRepository.CreateTaskError>? = null)

Creates a Task associated with an IMMessage and a specific category.

This method generates a new Task linked to the provided instant message and associates it with the specified category. The newly created Task is returned via the listener's onSuccess method. Additionally, the taskList will be updated automatically to reflect the addition of the new task.

See also the createTask method for creating tasks without a message.

Parameters

message

The IMMessage that will be bound to the task.

conversation

The IRainbowConversation associated with the message.

category

The category under which the task will be organized.

position

The position of the task in the list (default is 0).

listener

An optional callback of type RainbowListener<Task, TaskRepository.CreateTaskError> that is invoked upon completion of the operation. If not required, set to null.