ThreadMessageListParams

Represents a message list params.

Since

3.0.130

See also

Constructors

Link copied to clipboard
constructor()
constructor(previousResultSize: Int, nextResultSize: Int, messageTypeFilter: MessageTypeFilter?, customType: String?, senderUserIds: List<String>?, inclusive: Boolean, reverse: Boolean, messagePayloadFilter: MessagePayloadFilter)
constructor(previousResultSize: Int, nextResultSize: Int, messageTypeFilter: MessageTypeFilter?, customTypes: Collection<String>?, senderUserIds: List<String>?, inclusive: Boolean, reverse: Boolean, messagePayloadFilter: MessagePayloadFilter)

Properties

Link copied to clipboard

Restricts the search scope only to retrieve the messages with the specified custom message type. When the custom type filtering is not needed, the value should be set to null.

Link copied to clipboard

Restricts the search scope only to retrieve the messages that match any of given custom types. When the custom type filtering is not needed, the value should be set to null. When a empty string is given, messages that does not have a custom type will also be returned.

Link copied to clipboard

Determines whether to include the messages sent exactly on the specified timestamp or have the matching message ID in the results.

Link copied to clipboard

Sets the MessagePayloadFilter to be used in retrieving message lists. This is more preferred way of setting other include flags.

Link copied to clipboard

Restricts the search scope only to retrieve the messages with the specified message type.

Link copied to clipboard

The number of newer messages added either before the timestamp or the message that has a specific message ID.

Link copied to clipboard

The number of previous messages added either before the timestamp or the message that has a specific message ID.

Link copied to clipboard

Determines whether to sort the retrieved messages in reverse order.

Link copied to clipboard

Restricts the search scope only to retrieve the messages sent by the users with the specified user IDs. When the user ID filtering is not needed, the value should be set to null.

Functions

Link copied to clipboard
open fun belongsTo(message: BaseMessage): Boolean

Verify that the given channel information matches the current query filter.

open override fun belongsTo(params: BaseMessageCreateParams): Boolean

Verify that the given BaseMessageCreateParams information matches the current query filter.

Link copied to clipboard

Clones and returns a new instance of ThreadMessageListParams.

Link copied to clipboard
fun copy(previousResultSize: Int = this.previousResultSize, nextResultSize: Int = this.nextResultSize, messageTypeFilter: MessageTypeFilter = this.messageTypeFilter, customTypes: Collection<String>? = this.refinedCustomTypes, senderUserIds: List<String>? = this.senderUserIds, inclusive: Boolean = this.inclusive, reverse: Boolean = this.reverse, messagePayloadFilter: MessagePayloadFilter = this.messagePayloadFilter): ThreadMessageListParams
Link copied to clipboard
open override fun toString(): String