EMMessageReaction.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. //
  2. // EMMessageReaction.h
  3. // HyphenateChat
  4. //
  5. // Created by 冯钊 on 2022/2/11.
  6. // Copyright © 2022 easemob.com. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. /**
  11. * \~chinese
  12. * 消息Reaction类。
  13. *
  14. * \~english
  15. * The message reaction object.
  16. */
  17. @interface EMMessageReaction : NSObject
  18. /**
  19. * \~chinese
  20. * Reaction 内容。
  21. *
  22. * \~english
  23. * The Reaction content.
  24. */
  25. @property (readonly, nullable) NSString *reaction;
  26. /**
  27. * \~chinese
  28. * 添加该 Reaction 的用户总数。
  29. *
  30. * \~english
  31. * The count of the users who added this Reaction.
  32. */
  33. @property (readonly) NSUInteger count;
  34. /**
  35. * \~chinese
  36. * 当前用户是否添加了该 Reaction。
  37. * - `YES`: 是;
  38. * - `NO`: 否。
  39. *
  40. * \~english
  41. * Whether the current user added this Reaction.
  42. * - `Yes`: Yes;
  43. * - `No`: No.
  44. */
  45. @property (readonly) BOOL isAddedBySelf;
  46. /**
  47. * \~chinese
  48. * 添加了指定 Reaction 的用户列表。
  49. *
  50. * **Note**
  51. * 只有通过 {@link #getReactionDetail(IEMChatManager)} 接口获取的是全部用户的分页数据;其他相关接口如 {@link #reactionList(EMChatMessage)}、{@link #getReactionList(IEMChatManager)} 或者 {@link messageReactionDidChange(EMChatManagerDelegate)} 等都只包含前三个用户。
  52. *
  53. * \~english
  54. * The list of users that added this Reaction.
  55. *
  56. * **Note**
  57. * To get the entire list of users adding this Reaction, you can call {@link #getReactionDetail(IEMChatManager)} which returns the user list with pagination. Other methods like {@link #reactionList(EMChatMessage)}, {@link #getReactionList(IEMChatManager)} or {@link messageReactionDidChange(EMChatManagerDelegate)} can get the first three users.
  58. */
  59. @property (readonly, nullable) NSArray <NSString *>*userList;
  60. @end
  61. NS_ASSUME_NONNULL_END