MessageListParams

Constructors

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

Types

Link copied to clipboard
object Companion

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 the reply types to include in the results.

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.

Link copied to clipboard

Whether to show subchannel message only. Defaults to false. This only takes effect when the requested channel is a dynamically partitioned OpenChannel.

Functions

Link copied to clipboard
open override 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 MessageListParams.

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