listMessages

expect fun listMessages(threadId: String, skip: Long, limit: Long, sortOrder: String = "desc", lastId: String? = null): PagingList<Message>

Gets a list of messages from a Thread.

Return

list of messages

Parameters

threadId

ID of the Thread to list messages from

skip

skip number of elements to skip from result

limit

limit of elements to return for query

sortOrder

order of elements in result ("asc" for ascending, "desc" for descending)

lastId

ID of the element from which query results should start

Throws

thrown when instance is closed

thrown when method encounters an exception

thrown when method encounters an unknown exception

actual fun listMessages(threadId: String, skip: Long, limit: Long, sortOrder: String, lastId: String?): PagingList<Message>

Gets a list of messages from a Thread.

Return

list of messages

Parameters

threadId

ID of the Thread to list messages from

skip

skip number of elements to skip from result

limit

limit of elements to return for query

sortOrder

order of elements in result ("asc" for ascending, "desc" for descending)

lastId

ID of the element from which query results should start

Throws

thrown when instance is closed

thrown when method encounters an exception

thrown when method encounters an unknown exception

actual external fun listMessages(threadId: String, skip: Long, limit: Long, sortOrder: String, lastId: String?): PagingList<Message>

Gets a list of messages from a Thread.

Return

list of messages

Parameters

threadId

ID of the Thread to list messages from

skip

skip number of elements to skip from result

limit

limit of elements to return for query

sortOrder

order of elements in result ("asc" for ascending, "desc" for descending)

lastId

ID of the element from which query results should start

Throws

thrown when instance is closed

thrown when method encounters an exception

thrown when method encounters an unknown exception