JMSGFriendNotificationEvent.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // JMSGFriendEventContent.h
  3. // JMessage
  4. //
  5. // Created by xudong.rao on 16/7/25.
  6. // Copyright © 2016年 HXHG. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <JMessage/JMSGAbstractContent.h>
  10. #import <JMessage/JMSGUser.h>
  11. #import <JMessage/JMSGNotificationEvent.h>
  12. @interface JMSGFriendNotificationEvent : JMSGNotificationEvent
  13. /// 事件的 id
  14. @property(nonatomic, strong, readonly) NSString *JMSG_NULLABLE eventID;
  15. /*!
  16. * @abstract 获取事件发生的理由
  17. *
  18. * @discussion 该字段由对方发起请求时所填,对方如果未填则将返回默认字符串
  19. */
  20. - (NSString *JMSG_NULLABLE)getReason;
  21. /*!
  22. * @abstract 事件发送者的username
  23. *
  24. * @discussion 该字段由对方发起请求时所填,对方如果未填则将返回默认字符串
  25. * 如果设置了noteName、nickname,返回优先级为noteName、nickname;否则返回username
  26. */
  27. - (NSString *JMSG_NULLABLE)getFromUsername;
  28. /*!
  29. * @abstract 获取事件发送者user
  30. */
  31. - (JMSGUser *JMSG_NULLABLE)getFromUser;
  32. @end