NIMThreadTalkFetchOption.h 935 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // NIMThreadTalkFetchOption.h
  3. // NIMLib
  4. //
  5. // Created by He on 2020/4/7.
  6. // Copyright © 2020 Netease. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @class NIMMessage;
  10. NS_ASSUME_NONNULL_BEGIN
  11. /**
  12. * 获取Thread Talk消息分页选择
  13. */
  14. @interface NIMThreadTalkFetchOption : NSObject
  15. /**
  16. * 查询开始时间戳,默认 0,单位(s)
  17. */
  18. @property (nonatomic,assign) NSTimeInterval start;
  19. /**
  20. * 查询h结束时间戳,默认 当前时间+1小时,单位(s)
  21. */
  22. @property (nonatomic,assign) NSTimeInterval end;
  23. /**
  24. * 查询结果排除指定消息,默认为空
  25. */
  26. @property (nonatomic,strong) NIMMessage *excludeMessage;
  27. /**
  28. * 分页查询数量,默认100
  29. */
  30. @property (nonatomic,assign) NSUInteger limit;
  31. /**
  32. * 逆序查询,默认 NO
  33. */
  34. @property (nonatomic,assign) BOOL reverse;
  35. /**
  36. * 同步到DB,默认 NO
  37. */
  38. @property (nonatomic,assign) BOOL sync;
  39. @end
  40. NS_ASSUME_NONNULL_END