EMCustomMessageBody.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /**
  2. * \~chinese
  3. * @header EMCustomMessageBody.h
  4. * @abstract 自定义消息体
  5. * @author Hyphenate
  6. * @version 3.00
  7. *
  8. * \~english
  9. * @header EMCustomMessageBody.h
  10. * @abstract Custom message body
  11. * @author Hyphenate
  12. * @version 3.00
  13. */
  14. #import <Foundation/Foundation.h>
  15. #import "EMCommonDefs.h"
  16. #import "EMMessageBody.h"
  17. /**
  18. * \~chinese
  19. * 自定义消息体。
  20. *
  21. * \~english
  22. * The custom message body.
  23. */
  24. @interface EMCustomMessageBody : EMMessageBody
  25. /**
  26. * \~chinese
  27. * 自定义事件。
  28. *
  29. * \~english
  30. * The custom event.
  31. */
  32. @property (nonatomic, copy) NSString *event;
  33. /**
  34. * \~chinese
  35. * 自定义扩展字典。
  36. *
  37. * \~english
  38. * The custom extension dictionary.
  39. */
  40. @property (nonatomic, copy) NSDictionary<NSString *,NSString *> *customExt;
  41. /**
  42. * \~chinese
  43. * 初始化自定义消息体。
  44. *
  45. * @param aEvent 自定义事件。
  46. * @param aCustomExt 自定义扩展字典。
  47. *
  48. * @result 自定义消息体实例。
  49. *
  50. * \~english
  51. * Initializes a custom message body instance.
  52. *
  53. * @param aEvent The custom event.
  54. * @param aCustomExt The custom extension dictionary.
  55. *
  56. * @result The custom message body instance.
  57. */
  58. - (instancetype _Nonnull)initWithEvent:(NSString *_Nullable)aEvent customExt:(NSDictionary<NSString *,NSString *> *_Nullable)aCustomExt;
  59. @end