NIMCacheQuery.h 1022 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. //
  2. // NIMCacheQuery.h
  3. // NIMLib
  4. //
  5. // Created by Netease.
  6. // Copyright © 2018年 Netease. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. /**
  11. * SDK 缓存查询选项
  12. */
  13. @interface NIMResourceQueryOption : NSObject
  14. /**
  15. * 查询的缓存文件类型,类型为文件后缀的集合。
  16. * 默认为 nil ,不分类型查询所有文件缓存。
  17. */
  18. @property (nonatomic, copy, nullable) NSArray<NSString *> *extensions;
  19. /**
  20. * 当前时间往前多少时间之前所有的消息,默认为 7 天之前。
  21. */
  22. @property (nonatomic, assign) NSTimeInterval timeInterval;
  23. @end
  24. /**
  25. * SDK 缓存查询结果
  26. */
  27. @interface NIMCacheQueryResult : NSObject
  28. /**
  29. * 文件路径
  30. */
  31. @property (nonatomic, copy, readonly) NSString *path;
  32. /**
  33. * 文件的创建日期
  34. */
  35. @property (nonatomic, strong, readonly) NSDate *creationDate;
  36. /**
  37. * 文件的大小,单位为 bytes
  38. */
  39. @property (nonatomic, assign, readonly) long long fileLength;
  40. @end
  41. NS_ASSUME_NONNULL_END