SBDMessageListQuery Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | SBDMessageListQuery.h |
Overview
The SBDMessageListQuery class is a query class for getting messages from the given channel. The instance of this class is created by createMessageListQuery in SBDBaseChannel class.
– initWithChannel:
Internal use only.
- (nullable instancetype)initWithChannel:(SBDBaseChannel *_Nonnull)channelParameters
channel |
channel |
|---|
Discussion
Warning: Important: DON’T use this method. This method will be unavailable.
See Also
-createMessageListQueryinSBDBaseChannelclass.
Declared In
SBDMessageListQuery.h
– isLoading
Shows if the query is loading. (Deprecated: 3.0.28.)
- (BOOL)isLoadingReturn Value
Returns YES if the query is loading, otherwise returns NO.
Declared In
SBDMessageListQuery.h
– loadNextMessagesFromTimestamp:limit:reverse:completionHandler:
Loads the next messages from the timestamp with a limit and ordering. (Deprecated: 3.0.28.)
- (void)loadNextMessagesFromTimestamp:(long long)timestamp limit:(NSInteger)limit reverse:(BOOL)reverse completionHandler:(nullable void ( ^ ) ( NSArray<SBDBaseMessage*> *_Nullable messages , SBDError *_Nullable error ))completionHandlerParameters
timestamp |
The standard timestamp to load messages. |
|---|---|
limit |
The limit for the number of messages. The returned messages could be more than this number if there are messages which have the same timestamp. |
reverse |
If yes, the latest message is the index 0. |
completionHandler |
The handler block to execute. The |
Declared In
SBDMessageListQuery.h
– loadPreviousMessagesFromTimestamp:limit:reverse:completionHandler:
Loads the previous messages from the timestamp with a limit and ordering. (Deprecated: 3.0.28.)
- (void)loadPreviousMessagesFromTimestamp:(long long)timestamp limit:(NSInteger)limit reverse:(BOOL)reverse completionHandler:(nullable void ( ^ ) ( NSArray<SBDBaseMessage*> *_Nullable messages , SBDError *_Nullable error ))completionHandlerParameters
timestamp |
The standard timestamp to load messages. |
|---|---|
limit |
The limit for the number of messages. The returned messages could be more than this number if there are messages which have the same timestamp. |
reverse |
If yes, the latest message is the index 0. |
completionHandler |
The handler block to execute. The |
Declared In
SBDMessageListQuery.h
– loadMessagesFromTimestamp:prevLimit:nextLimit:reverse:completionHandler:
Loads the previous and next message from the timestamp with a limit and ordering. (Deprecated: 3.0.28.)
- (void)loadMessagesFromTimestamp:(long long)timestamp prevLimit:(NSInteger)prevLimit nextLimit:(NSInteger)nextLimit reverse:(BOOL)reverse completionHandler:(nullable void ( ^ ) ( NSArray<SBDBaseMessage*> *_Nullable messages , SBDError *_Nullable error ))completionHandlerParameters
timestamp |
The standard timestamp to load messages. |
|---|---|
prevLimit |
The previous limit for the number of messages. The returned messages could be more than this number if there are messages which have the same timestamp. |
nextLimit |
The next limit for the number of messages. The returned messages could be more than this number if there are messages which have the same timestamp. |
reverse |
If yes, the latest message is the index 0. |
completionHandler |
The handler block to execute. The |
Declared In
SBDMessageListQuery.h