EMMessageBody.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*!
  2. * \~chinese
  3. * @header EMMessageBody.h
  4. * @abstract 消息体类型的基类
  5. * @author Hyphenate
  6. * @version 3.00
  7. *
  8. * \~english
  9. * @header EMMessageBody.h
  10. * @abstract Base class of message body
  11. * @author Hyphenate
  12. * @version 3.00
  13. */
  14. #import <Foundation/Foundation.h>
  15. #import <CoreGraphics/CGGeometry.h>
  16. /*!
  17. * \~chinese
  18. * 消息体类型
  19. *
  20. * \~english
  21. * Message body type
  22. */
  23. typedef enum {
  24. EMMessageBodyTypeText = 1, /*! \~chinese 文本类型 \~english Text */
  25. EMMessageBodyTypeImage, /*! \~chinese 图片类型 \~english Image */
  26. EMMessageBodyTypeVideo, /*! \~chinese 视频类型 \~english Video */
  27. EMMessageBodyTypeLocation, /*! \~chinese 位置类型 \~english Location */
  28. EMMessageBodyTypeVoice, /*! \~chinese 语音类型 \~english Voice */
  29. EMMessageBodyTypeFile, /*! \~chinese 文件类型 \~english File */
  30. EMMessageBodyTypeCmd, /*! \~chinese 命令类型 \~english Command */
  31. EMMessageBodyTypeCustom, /*! \~chinese 自定义类型 \~english Custom */
  32. } EMMessageBodyType;
  33. /*!
  34. * \~chinese
  35. * 消息体
  36. *
  37. * \~english
  38. * Message body
  39. */
  40. @interface EMMessageBody : NSObject
  41. /*!
  42. * \~chinese
  43. * 消息体类型
  44. *
  45. * \~english
  46. * Message body type
  47. */
  48. @property (nonatomic, readonly) EMMessageBodyType type;
  49. @end