new MessageListQuery(channel)
- Deprecated:
- since version v3.0.36, please use
PreviousMessageListQuery
instead Query class used to retrieve messages from a given channel. Initialize usingbaseChannel.createMessageListQuery()
method in GroupChannel or OpenChannel derived classes
- since version v3.0.36, please use
- See:
Parameters:
Name | Type | Description |
---|---|---|
channel |
module:model/openChannel~OpenChannel | module:model/groupChannel~GroupChannel |
Members
isLoading :boolean
Type:
- boolean
Methods
load(messageTimestamp, prevLimit, nextLimit, reverse, callbackopt) → {Promise|undefined}
Load messages
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
messageTimestamp |
number | ||
prevLimit |
number | ||
nextLimit |
number | ||
reverse |
boolean | ||
callback |
messageListCallback |
<optional> |
Returns:
- Type
- Promise | undefined
next(messageTimestamp, limit, reverse, callbackopt) → {Promise|undefined}
Load next messages
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
messageTimestamp |
number | ||
limit |
number | ||
reverse |
boolean | ||
callback |
messageListCallback |
<optional> |
Returns:
- Type
- Promise | undefined
prev(messageTimestamp, limit, reverse, callbackopt) → {Promise|undefined}
Load previous messages
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
messageTimestamp |
number | ||
limit |
number | ||
reverse |
boolean | ||
callback |
messageListCallback |
<optional> |
Returns:
- Type
- Promise | undefined