EMChatThreadEvent.h 1009 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //
  2. // EMThreadEvent.h
  3. // HyphenateChat
  4. //
  5. // Created by 朱继超 on 2022/3/3.
  6. // Copyright © 2022 easemob.com. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @class EMChatMessage;
  10. @class EMChatThread;
  11. typedef NS_ENUM(NSUInteger, EMThreadOperation) {
  12. EMThreadOperationUnknown,
  13. EMThreadOperationCreate,
  14. EMThreadOperationUpdate,
  15. EMThreadOperationDelete,
  16. EMThreadOperationUpdate_msg
  17. };
  18. /*!
  19. * \~chinese
  20. * 子区事件类。
  21. *
  22. * \~english
  23. * The message thread event class.
  24. */
  25. @interface EMChatThreadEvent : NSObject
  26. /*!
  27. * \~chinese
  28. * 子区事件类型。
  29. *
  30. * \~english
  31. * The message thread event type.
  32. */
  33. @property (readonly) EMThreadOperation type;
  34. /*!
  35. * \~chinese
  36. * 子区操作者的用户 ID。
  37. *
  38. * \~english
  39. * The user ID of the message thread operator.
  40. */
  41. @property (readonly) NSString *from;
  42. /*!
  43. * \~chinese
  44. * 子区对象。
  45. *
  46. * \~english
  47. * The message thread object.
  48. */
  49. @property (readonly) EMChatThread *chatThread;
  50. @end