NIMMsgIndexQueryResult Class Reference

Inherits from NSObject
Declared in NIMIndexManagerProtocol.h

  empty

Empty result

@property (nonatomic, readonly) BOOL empty

Discussion

Empty result

Declared In

NIMIndexManagerProtocol.h

  sessions

Sorted session list

@property (nonatomic, nullable, readonly) NSArray<NIMSession*> *sessions

Discussion

Sorted session list

Declared In

NIMIndexManagerProtocol.h

  records

Index record by session

@property (nonatomic, nullable, readonly) NSDictionary<NIMSession*NSArray<NIMMsgIndexRecord*> *> *records

Discussion

Index record by session

Declared In

NIMIndexManagerProtocol.h

  withMesssage

Specify whether to include messages

@property (nonatomic, readonly) BOOL withMesssage

Discussion

Specify whether to include messages

Declared In

NIMIndexManagerProtocol.h

– messages:

Index record by session

- (NSArray<NIMMessage*> *)messages:(nonnull NIMSession *)session

Parameters

session

specified session @discussion

Discussion

Index record by session

Declared In

NIMIndexManagerProtocol.h

– messageCount:

The number of messages in the query result

- (NSUInteger)messageCount:(nullable NIMSession *)session

Parameters

session

specified session. If no value is specified, all sessions are queried. @discussion

Discussion

The number of messages in the query result

Declared In

NIMIndexManagerProtocol.h

– queryMessage:completion:

Query messages

- (void)queryMessage:(nullable NIMSession *)session completion:(nullable NIMMsgIndexQueryMsgBlock)completion

Parameters

session

specified session. If no value is specified, all sessions are queried.

completion

Completion callback

Discussion

Query messages

Message results are recorded in the query results

Declared In

NIMIndexManagerProtocol.h