NIMPushNotificationSetting.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. //
  2. // NIMPushNotificationSetting.h
  3. // NIMLib
  4. //
  5. // Created by Netease.
  6. // Copyright (c) 2015 Netease. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. /**
  11. * 推送消息显示类型
  12. */
  13. typedef NS_ENUM(NSInteger, NIMPushNotificationDisplayType){
  14. /**
  15. * 显示详情
  16. */
  17. NIMPushNotificationDisplayTypeDetail = 1,
  18. /**
  19. * 不显示详情
  20. */
  21. NIMPushNotificationDisplayTypeNoDetail = 2,
  22. };
  23. /**
  24. * 消息推送免打扰参数设置
  25. */
  26. @interface NIMPushNotificationSetting : NSObject
  27. /**
  28. * 推送消息显示类型
  29. */
  30. @property (nonatomic,assign) NIMPushNotificationDisplayType type;
  31. /**
  32. * 推送消息是否开启免打扰 YES表示开启免打扰
  33. */
  34. @property (nonatomic,assign) BOOL noDisturbing;
  35. /**
  36. * 免打扰开始时间:小时
  37. */
  38. @property (nonatomic,assign) NSUInteger noDisturbingStartH;
  39. /**
  40. * 免打扰开始时间:分
  41. */
  42. @property (nonatomic,assign) NSUInteger noDisturbingStartM;
  43. /**
  44. * 免打扰结束时间:小时
  45. */
  46. @property (nonatomic,assign) NSUInteger noDisturbingEndH;
  47. /**
  48. * 免打扰结束时间:分
  49. */
  50. @property (nonatomic,assign) NSUInteger noDisturbingEndM;
  51. @end
  52. /**
  53. * 自定义消息推送配置项
  54. */
  55. @interface NIMPushNotificationMultiportConfig : NSObject
  56. /**
  57. * 桌面端在线时是否需要发送推送给手机端
  58. * @discussion 默认为 YES,即需要推送,桌面端包括 PC,web , macOS 等...
  59. */
  60. @property (nonatomic,assign) BOOL shouldPushNotificationWhenPCOnline;
  61. @end
  62. NS_ASSUME_NONNULL_END