EMChatThread.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. //
  2. // EMChatThread.h
  3. // HyphenateChat
  4. //
  5. // Created by 朱继超 on 2022/3/1.
  6. // Copyright © 2022 easemob.com. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @class EMChatMessage;
  10. /*!
  11. * \~chinese
  12. * 子区模型类,用于定义子区属性。
  13. *
  14. * \~english
  15. * The message thread model class, which defines attributes of a message thread.
  16. */
  17. @interface EMChatThread : NSObject
  18. /*!
  19. * \~chinese
  20. * 子区 ID。
  21. *
  22. * \~english
  23. * The message thread ID.
  24. */
  25. @property (readonly) NSString *threadId;
  26. /*!
  27. * \~chinese
  28. * 子区名称。
  29. *
  30. * \~english
  31. * The message thread name.
  32. */
  33. @property (nonatomic, strong) NSString *threadName;
  34. /*!
  35. * \~chinese
  36. * 子区创建者。
  37. *
  38. * \~english
  39. * The message thread creator.
  40. */
  41. @property (readonly) NSString *owner;
  42. /*!
  43. * \~chinese
  44. * 子区父消息 ID。
  45. *
  46. * 该属性为空,表示父消息被撤回。
  47. *
  48. * \~english
  49. * The ID of the parent message of the message thread.
  50. *
  51. * If this attribute is empty, the parent message of the message thread is withdrawn.
  52. */
  53. @property (readonly) NSString *messageId;
  54. /*!
  55. * \~chinese
  56. * 子区所属的群组 ID。
  57. *
  58. * \~english
  59. * The group ID where the message thread belongs.
  60. */
  61. @property (readonly) NSString *parentId;
  62. /*!
  63. * \~chinese
  64. * 子区成员数量。
  65. *
  66. * 只有获取子区详情 {@link IEMChatThread#getChatThreadDetail:} 后,该属性才存在。
  67. *
  68. * \~english
  69. * The count of members in the message thread.
  70. *
  71. * This attribute exists only after you call {@link IEMChatThread#getChatThreadDetail:} to get details of a message thread.
  72. */
  73. @property (readonly) int membersCount;
  74. /*!
  75. * \~chinese
  76. * 子区中的消息数。
  77. *
  78. * \~english
  79. * The number of messages in a message thread.
  80. */
  81. @property (readonly) int messageCount;
  82. /*!
  83. * \~chinese
  84. * 子区创建的 Unix 时间戳,单位为毫秒。
  85. *
  86. * \~english
  87. * The Unix timestamp when the message thread is created. The unit is millisecond.
  88. */
  89. @property (readonly) int createAt;
  90. /*!
  91. * \~chinese
  92. * 子区中的最新一条消息。
  93. *
  94. * 若该属性为空,表示最后一条消息被撤回。
  95. *
  96. * \~english
  97. * The last reply in the message thread.
  98. *
  99. * If this attribute is empty, the last reply is withdrawn.
  100. */
  101. @property (readonly) EMChatMessage *lastMessage;
  102. @end