list
abstract fun list(spaceId: String, before: Before?, max: Int, mentions: ArrayList<Mention>?, handler: CompletionHandler<List<Message>>)
Lists all messages in a space by space Id asynchronously. If present, it includes the associated file attachment for each message.
The list sorts the messages in descending order by creation date. 2.1Since
Parameters
space Id
The identifier of a space. (Derived parameter: Use SpaceClient.list to get a list of spaces. Then use Space.id to retrieve the spaceId)
before
If not nil, list messages sent only before this condition.
max
The maximum number of messages to be listed in the response. The valid range for max is 1 to 1000, any other input will throw InvalidMaxValue error.
mentions
If not nil, only list messages with any mention listed here.
handler
A closure to be executed once the request has finished with a list of messages based on the above criteria.