NIMQuickComment.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. //
  2. // NIMQuickComment.h
  3. // NIMLib
  4. //
  5. // Created by He on 2020/4/8.
  6. // Copyright © 2020 Netease. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @class NIMChatExtendBasicInfo;
  10. @class NIMQuickCommentSetting;
  11. @class NIMMessage;
  12. NS_ASSUME_NONNULL_BEGIN
  13. /**
  14. * 快捷评论
  15. */
  16. @interface NIMQuickComment : NSObject <NSCopying>
  17. /**
  18. * 评论发送方
  19. */
  20. @property (nonatomic,copy,readonly) NSString *from;
  21. /**
  22. * 类型
  23. * @discussion 对同一条消息回复相同的replyType将会覆盖之前的回复
  24. */
  25. @property (nonatomic,assign) int64_t replyType;
  26. /**
  27. * 回复时间
  28. */
  29. @property (nonatomic,assign,readonly) NSTimeInterval timestamp;
  30. /**
  31. * 自定义扩展字段,最大16字符
  32. */
  33. @property (nonatomic,copy,nullable) NSString *ext;
  34. /**
  35. * 评论设置
  36. */
  37. @property (nonatomic,strong,nullable) NIMQuickCommentSetting *setting;
  38. /**
  39. * 评论所在的消息
  40. */
  41. @property (nonatomic,strong,readonly) NIMMessage *message;
  42. /**
  43. * 评论所在消息的元信息
  44. */
  45. @property (nonatomic,strong,readonly) NIMChatExtendBasicInfo *basicInfo;
  46. @end
  47. /**
  48. * 快捷评论推送设置
  49. */
  50. @interface NIMQuickCommentSetting : NSObject <NSCopying>
  51. /**
  52. * 是否需要推送,默认NO,不推送
  53. */
  54. @property (nonatomic,assign) BOOL needPush;
  55. /**
  56. * 是否需要计入未读数,默认NO,不计入
  57. */
  58. @property (nonatomic,assign) BOOL needBadge;
  59. /**
  60. * 推送标题
  61. */
  62. @property (nonatomic,copy,nullable) NSString *pushTitle;
  63. /**
  64. * 推送内容
  65. */
  66. @property (nonatomic,copy,nullable) NSString *pushContent;
  67. /**
  68. * 推送参数设置
  69. */
  70. @property (nonatomic,copy,nullable) NSDictionary *pushPayload;
  71. @end
  72. NS_ASSUME_NONNULL_END