EMTextMessageBody.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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 The 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. * The text message body.
  22. */
  23. @interface EMTextMessageBody : EMMessageBody
  24. /**
  25. * \~chinese
  26. * 文本内容。
  27. *
  28. * \~english
  29. * The text content.
  30. */
  31. @property (nonatomic, copy, readonly) NSString *_Nonnull text;
  32. /**
  33. * \~chinese
  34. * 翻译的目标语言。
  35. *
  36. * \~english
  37. * The target language codes to translate.
  38. */
  39. @property (nonatomic, copy) NSArray<NSString*>*_Nullable targetLanguages;
  40. /**
  41. * \~chinese
  42. * 译文信息。
  43. *
  44. * \~english
  45. * Translated information.
  46. */
  47. @property (nonatomic, copy, readonly) NSDictionary<NSString*,NSString*>*_Nullable translations;
  48. /**
  49. * \~chinese
  50. * 初始化文本消息体。
  51. *
  52. * @param aText 文本内容。
  53. *
  54. * @result 文本消息体实例。
  55. *
  56. * \~english
  57. * Initializes a text message body instance.
  58. *
  59. * @param aText The text content.
  60. *
  61. * @result The text message body instance.
  62. */
  63. - (instancetype _Nonnull)initWithText:(NSString *_Nullable)aText;
  64. @end