Keine Beschreibung

EMCmdMessageBody.h 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*!
  2. * \~chinese
  3. * @header EMCmdMessageBody.h
  4. * @abstract 命令消息体
  5. * @author Hyphenate
  6. * @version 3.00
  7. *
  8. * \~english
  9. * @header EMCmdMessageBody.h
  10. * @abstract Command 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. * Command message body
  22. */
  23. @interface EMCmdMessageBody : EMMessageBody
  24. /*!
  25. * \~chinese
  26. * 命令内容
  27. *
  28. * \~english
  29. * Command content
  30. */
  31. @property (nonatomic, copy) NSString *action;
  32. /*!
  33. * \~chinese
  34. * 命令参数,只是为了兼容老版本,应该使用EMMessage的扩展属性来代替
  35. *
  36. * \~english
  37. * Command parameters, only compatable with old sdk versions. For SDK version 3.0+, use EMMessage's ext property instead
  38. */
  39. @property (nonatomic, copy) NSArray *params;
  40. /*!
  41. * \~chinese
  42. * 初始化命令消息体
  43. *
  44. * @param aAction 命令内容
  45. *
  46. * @result 命令消息体实例
  47. *
  48. * \~english
  49. * Construct command message body
  50. *
  51. * @param aAction Action content
  52. *
  53. * @result Instance of command message body
  54. */
  55. - (instancetype)initWithAction:(NSString *)aAction;
  56. @end