EMTextMessageBody.h 885 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*!
  2. * \~chinese
  3. * @header EMTextMessageBody.h
  4. * @abstract 文本消息体
  5. * @author Hyphenate
  6. * @version 3.00
  7. *
  8. * \~english
  9. * @header EMTextMessageBody.h
  10. * @abstract Text message body
  11. * @author Hyphenate
  12. * @version 3.00
  13. */
  14. #import <Foundation/Foundation.h>
  15. #import "EMMessageBody.h"
  16. /*!
  17. * \~chinese
  18. * 文本消息体
  19. *
  20. * \~english
  21. * Text message body
  22. */
  23. @interface EMTextMessageBody : EMMessageBody
  24. /*!
  25. * \~chinese
  26. * 文本内容
  27. *
  28. * \~english
  29. * Text content
  30. */
  31. @property (nonatomic, copy, readonly) NSString *text;
  32. /*!
  33. * \~chinese
  34. * 初始化文本消息体
  35. *
  36. * @param aText 文本内容
  37. *
  38. * @result 文本消息体实例
  39. *
  40. * \~english
  41. * Initialize a text message body instance
  42. *
  43. * @param aText Text content
  44. *
  45. * @result Text message body instance
  46. */
  47. - (instancetype)initWithText:(NSString *)aText;
  48. @end