getMessagesFromConversation
abstract fun getMessagesFromConversation(conversation: IRainbowConversation, nbMessagesToRetrieve: Int)
Retrieve the list of the nbMessagesToRetrieve first messages of a given conversation.
The response is in the complete
method as a @object:ArrayItemList<@object:IMMessage>.
The response is also available by listening the @object:ArrayItemList<@object:IMMessage> of the conversation.
Parameters
conversation
IRainbowConversation The conversation to retrieve the nbMessagesToRetrieve first messages
nbMessagesToRetrieve
int The number of messages to retrieve
Retrieve the list of the 50 first messages of a given conversation.
The response is in the complete
method as a @object:ArrayItemList<@object:IMMessage>.
The response is also available by listening the @object:ArrayItemList<@object:IMMessage> of the conversation.
Parameters
conversation
IRainbowConversation The conversation to retrieve the 50 first messages