NIMMessagePinItem.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. //
  2. // NIMMessagePinItem.h
  3. // NIMLib
  4. //
  5. // Created by 丁文超 on 2020/4/7.
  6. // Copyright © 2020 Netease. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @class NIMMessage;
  10. @class NIMSession;
  11. NS_ASSUME_NONNULL_BEGIN
  12. @interface NIMMessagePinItem : NSObject
  13. /**
  14. * 对应会话
  15. */
  16. @property (nonatomic, copy) NIMSession *session;
  17. /**
  18. * 消息发送方ID
  19. */
  20. @property (nonatomic, copy) NSString *messageFromAccount;
  21. /**
  22. * 消息接收方ID
  23. */
  24. @property (nonatomic, copy) NSString *messageToAccount;
  25. /**
  26. * 消息时间戳(s)
  27. */
  28. @property (nonatomic, assign) NSTimeInterval messageTime;
  29. /**
  30. * 服务端消息ID
  31. */
  32. @property (nonatomic, strong) NSString *messageServerID;
  33. /**
  34. * 本地消息ID
  35. */
  36. @property (nonatomic, copy) NSString *messageId;
  37. /**
  38. * 操作者,不传表示当前登录者
  39. */
  40. @property (nonatomic, copy, nullable) NSString *accountID;
  41. /**
  42. * 扩展字段,string,最大512
  43. */
  44. @property (nonatomic, copy, nullable) NSString *ext;
  45. /**
  46. * 创建时间(s)
  47. */
  48. @property (nonatomic, assign) NSTimeInterval createTime;
  49. /**
  50. * 更新时间(s)
  51. */
  52. @property (nonatomic, assign) NSTimeInterval updateTime;
  53. /**
  54. * 简便初始化方法
  55. */
  56. - (instancetype)initWithMessage:(NIMMessage *)message;
  57. @end
  58. NS_ASSUME_NONNULL_END