JMSGOptionalContent.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /*
  2. * | | | | \ \ / / | | | | / _______|
  3. * | |____| | \ \/ / | |____| | / /
  4. * | |____| | \ / | |____| | | | _____
  5. * | | | | / \ | | | | | | |____ |
  6. * | | | | / /\ \ | | | | \ \______| |
  7. * | | | | /_/ \_\ | | | | \_________|
  8. *
  9. * Copyright (c) 2011 ~ 2015 Shenzhen HXHG. All rights reserved.
  10. */
  11. #import <Foundation/Foundation.h>
  12. @class JMSGCustomNotification;
  13. /*!
  14. * @abstract 发送消息的可选功能
  15. *
  16. */
  17. @interface JMSGOptionalContent : NSObject
  18. /*!
  19. * @abstract 不保存离线消息,NO,默认值,保存离线消息;YES,不保存离线消息
  20. */
  21. @property(nonatomic, assign) BOOL noSaveOffline;
  22. /*!
  23. * @abstract 不在状态栏显示消息,NO,默认值,状态栏显示消息;YES,状态栏不显示消息
  24. */
  25. @property(nonatomic, assign) BOOL noSaveNotification;
  26. /*!
  27. * @abstract 设置这条消息的发送是否需要对方发送已读回执,NO,默认值
  28. */
  29. @property(nonatomic, assign) BOOL needReadReceipt;
  30. /*!
  31. * @abstract 自定义消息通知栏的内容
  32. *
  33. * @discussion 这个属性可以具体参考 JMSGCustomNotification 类
  34. */
  35. @property(nonatomic, strong) JMSGCustomNotification *customNotification;
  36. @end
  37. /// 自定义通知栏消息的内容
  38. @interface JMSGCustomNotification : NSObject
  39. /*!
  40. * @abstract 是否启用自定义通知栏,默认:NO
  41. */
  42. @property(nonatomic, assign) BOOL enabled;
  43. /*!
  44. * @abstract 自定义消息通知栏的标题
  45. */
  46. @property(nonatomic, strong) NSString *title;
  47. /*!
  48. * @abstract 自定义消息通知栏的内容
  49. *
  50. */
  51. @property(nonatomic, strong) NSString *alert;
  52. /*!
  53. * @abstract 被@目标的通知内容前缀
  54. *
  55. * @discussion 此字段仅对@消息设置有效
  56. */
  57. @property(nonatomic, strong) NSString *atPrefix;
  58. @end