ListThreadMessagesRequest

data class ListThreadMessagesRequest(var limit: Int? = null, var order: ListOrder? = null, var after: String? = null, var before: String? = null)

Represents a request to list ThreadMessages in a Thread. If a thread has too many messages, you may need to use the after or before parameters to page through them via multiple requests.

Constructors

Link copied to clipboard
constructor(limit: Int? = null, order: ListOrder? = null, after: String? = null, before: String? = null)

Create empty List thread messages request

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
@ApiStatus.Internal
fun toMap(): Map<String, Any>

Converts the request to a map of query parameters.

Properties

Link copied to clipboard

The cursor to use for pagination

Link copied to clipboard

The cursor to use for pagination

Link copied to clipboard
var limit: Int?

The maximum number of results to return, between 1 and 100 inclusive

Link copied to clipboard

The order to return the list in