9#import <Foundation/Foundation.h>
14NS_ASSUME_NONNULL_BEGIN
39@property (nonatomic, copy) NSString *
text;
44@property (nonatomic, assign) NSInteger
type;
56@property (nullable, nonatomic, copy) NSString * messageId;
61@property (nullable, nonatomic, copy) NSString * indexText;
66@property (nonatomic, assign) NSInteger indexType;
76@property (nonatomic, assign) NSTimeInterval timestamp;
102@property (nonatomic, assign) NSTimeInterval startTime;
108@property (nonatomic, assign) NSTimeInterval endTime;
118@property (nonatomic, assign) NSUInteger limit;
134@property (nonatomic, readonly) BOOL empty;
139@property (nonatomic, nullable, readonly) NSArray<NIMSession *> * sessions;
144@property (nonatomic, nullable, readonly) NSDictionary<
NIMSession *, NSArray<NIMMsgIndexRecord *> *> * records;
149@property (nonatomic, readonly) BOOL withMesssage;
165- (NSUInteger)messageCount:(nullable
NIMSession *)session;
174- (void)queryMessage:(nullable
NIMSession *)session
182@protocol NIMMsgIndexProduceDelegate <NSObject>
186- (nullable NSString *)produceText:(
NIMMessage *)message;
216@protocol NIMIndexManagerDelegate <NSObject>
225@protocol NIMIndexManager <NSObject>
235- (void)syncMsgIndex:(BOOL)old
249- (void)queryMsgIndex:(nonnull NSString *)text
252 withMessage:(BOOL)withMessage
267- (void)addDelegate:(
id<NIMIndexManagerDelegate>)delegate;
274- (void)removeDelegate:(
id<NIMIndexManagerDelegate>)delegate;
void(^ NIMResetMsgIndexBlock)(NSError *__nullable error)
Definition: NIMIndexManagerProtocol.h:211
NIMMsgIndexTimeOrder
Definition: NIMIndexManagerProtocol.h:85
@ NIMMsgIndexTimeOrderAsc
Definition: NIMIndexManagerProtocol.h:94
@ NIMMsgIndexTimeOrderDesc
Definition: NIMIndexManagerProtocol.h:89
void(^ NIMMsgIndexQueryMsgBlock)(NSError *__nullable error)
Definition: NIMIndexManagerProtocol.h:127
void(^ NIMQueryMsgIndexBlock)(NSError *__nullable error, NIMMsgIndexQueryResult *__nullable result)
Definition: NIMIndexManagerProtocol.h:204
NIMIndexType
Definition: NIMIndexManagerProtocol.h:19
@ NIMIndexTypeCustomBase
Definition: NIMIndexManagerProtocol.h:28
@ NIMIndexTypeMsgText
Definition: NIMIndexManagerProtocol.h:23
void(^ NIMSyncMsgIndexBlock)(NSError *__nullable error)
Definition: NIMIndexManagerProtocol.h:197
Definition: NIMIndexManagerProtocol.h:35
NSString * text
Definition: NIMIndexManagerProtocol.h:39
NSInteger type
Definition: NIMIndexManagerProtocol.h:44
Definition: NIMMessage.h:91
Definition: NIMIndexManagerProtocol.h:98
Definition: NIMIndexManagerProtocol.h:130
Definition: NIMIndexManagerProtocol.h:51
Definition: NIMSession.h:49