TUIMessageSearchDataProvider.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // TUIMessageSearchDataProvider.h
  3. // TXIMSDK_TUIKit_iOS
  4. //
  5. // Created by kayev on 2021/7/8.
  6. // Copyright © 2023 Tencent. All rights reserved.
  7. //
  8. #import "TUIMessageDataProvider.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface TUIMessageSearchDataProvider : TUIMessageDataProvider
  11. @property(nonatomic) BOOL isOlderNoMoreMsg;
  12. @property(nonatomic) BOOL isNewerNoMoreMsg;
  13. @property(nonatomic) V2TIMMessage *msgForOlderGet;
  14. @property(nonatomic) V2TIMMessage *msgForNewerGet;
  15. - (void)loadMessageWithSearchMsg:(V2TIMMessage *)searchMsg
  16. SearchMsgSeq:(uint64_t)searchSeq
  17. ConversationInfo:(TUIChatConversationModel *)conversation
  18. SucceedBlock:(void (^)(BOOL isOlderNoMoreMsg, BOOL isNewerNoMoreMsg, NSArray<TUIMessageCellData *> *newMsgs))succeedBlock
  19. FailBlock:(V2TIMFail)failBlock;
  20. - (void)loadMessageWithIsRequestOlderMsg:(BOOL)orderType
  21. ConversationInfo:(TUIChatConversationModel *)conversation
  22. SucceedBlock:(void (^)(BOOL isOlderNoMoreMsg, BOOL isNewerNoMoreMsg, BOOL isFirstLoad,
  23. NSArray<TUIMessageCellData *> *newUIMsgs))succeedBlock
  24. FailBlock:(V2TIMFail)failBlock;
  25. - (void)removeAllSearchData;
  26. - (void)findMessages:(NSArray<NSString *> *)msgIDs callback:(void (^)(BOOL success, NSString *desc, NSArray<V2TIMMessage *> *messages))callback;
  27. - (void)preProcessMessage:(NSArray *)uiMsgs;
  28. @end
  29. NS_ASSUME_NONNULL_END