PreviousMessageListQuery class
A query object to retrieve previous messages
Constructors
- PreviousMessageListQuery.new({required ChannelType channelType, required String channelUrl, Chat? chat})
Properties
- channelType ↔ ChannelType
-
The type of the channel to get messages from.
getter/setter pair
- channelUrl ↔ String
-
The url of the channel to get messages from.
getter/setter pair
- chat → Chat
-
finalinherited
-
customTypesFilter
↔ List<
String> -
The custom type filter of the message.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasNext ↔ bool
-
Whether there is a next page.
getter/setter pairinherited
- includeMetaArray ↔ bool
-
Whether the meta arrays should be included in the results.
getter/setter pair
- includeParentMessageInfo ↔ bool
-
Whether the information of a parent message should be included in the reply messages included in the results.
getter/setter pair
- includeReactions ↔ bool
-
Whether the reaction data should be included in the results.
getter/setter pair
- includeThreadInfo ↔ bool
-
Whether the thread information should be included in the results.
getter/setter pair
- isLoading ↔ bool
-
Whether the current query is in communication progress with server.
getter/setter pairinherited
- limit ↔ int
-
The maximum number of items per queried page.
getter/setter pairinherited
- messageTimestamp ↔ int?
-
The time of a request.
After each call of next, this value will change to the oldest
BaseMessage.createdAt
value of the message that have been fetched.getter/setter pair - messageTypeFilter ↔ MessageTypeFilter
-
Message type filter. MessageTypeFilter
getter/setter pair
- replyType ↔ ReplyType
-
Determines the reply types to include in the results.
getter/setter pair
- reverse ↔ bool
-
Indicates whether the queried result will be reversed.
If
true
, the result will be returned by creation time descending order.getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
senderIdsFilter
↔ List<
String> -
Sender user ids filter.
getter/setter pair
- showSubChannelMessagesOnly ↔ bool
-
If set to true, only messages that belong to current user's subchannel is fetched.
If set to false, all messages will be fetched. Default is false.
Takes effect only when the requested channel is a dynamically partitioned open channel.
getter/setter pair
- token ↔ String?
-
getter/setter pairinherited
Methods
-
next(
) → Future< List< BaseMessage> > -
Gets the list of next items.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited