ZMVideoSDKChatMessage.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #import <Foundation/Foundation.h>
  2. @class ZMVideoSDKUser;
  3. /**
  4. @brief Chat message interface.
  5. */
  6. @interface ZMVideoSDKChatMessage : NSObject
  7. /**
  8. @brief Get the send user object of the message.
  9. @return If the function succeeds, it will return a user object, otherwise returns nil.
  10. */
  11. @property (nonatomic, retain, readonly) ZMVideoSDKUser* sendUser;
  12. /**
  13. @brief Get the receive user object of the message.
  14. @return If the function succeeds, it will return a user object, otherwise returns nil.
  15. */
  16. @property (nonatomic, retain, readonly) ZMVideoSDKUser* receiverUser;
  17. /**
  18. @brief Content of the message.
  19. */
  20. @property (nonatomic, copy, readonly) NSString* content;
  21. /**
  22. @brief Time stamp of the message.
  23. */
  24. @property (nonatomic, assign, readonly) time_t timeStamp;
  25. /**
  26. @brief Determine if the message is send to all.
  27. */
  28. @property (nonatomic, assign, readonly) BOOL isChatToAll;
  29. /**
  30. @brief Determine if the message is send by yourself.
  31. */
  32. @property (nonatomic, assign, readonly) BOOL isSelfSend;
  33. /**
  34. @brief Get the message ID of the current message.
  35. */
  36. @property (nonatomic, copy, readonly) NSString* messageID;
  37. @end