QYPushMessage.h 1016 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. //
  2. // QYPushMessage.h
  3. // QYSDK
  4. //
  5. // Created by Netease on 9/10/16.
  6. // Copyright (c) 2017 Netease. All rights reserved.
  7. //
  8. /**
  9. * 推送消息类型
  10. */
  11. typedef NS_ENUM(NSInteger, QYPushMessageType) {
  12. QYPushMessageTypeText,
  13. QYPushMessageTypeRichText,
  14. QYPushMessageTypeImage,
  15. };
  16. /**
  17. * 推送消息定义
  18. */
  19. @interface QYPushMessage : NSObject
  20. /**
  21. * 消息类型
  22. */
  23. @property (nonatomic, assign) QYPushMessageType type;
  24. /**
  25. * 发送方头像图片url
  26. */
  27. @property (nonatomic, copy) NSString *headImageUrl;
  28. /**
  29. * 按钮文本
  30. */
  31. @property (nonatomic, copy) NSString *actionText;
  32. /**
  33. * 按钮url
  34. */
  35. @property (nonatomic, copy) NSString *actionUrl;
  36. /**
  37. * 消息内容 文本
  38. */
  39. @property (nonatomic, copy) NSString *text;
  40. /**
  41. * 消息内容 富文本
  42. */
  43. @property (nonatomic, copy) NSString *richText;
  44. /**
  45. * 消息内容 图片
  46. */
  47. @property (nonatomic, copy) NSString *imageUrl;
  48. /**
  49. * 消息接收时间
  50. */
  51. @property (nonatomic, assign) NSTimeInterval time;
  52. @end