EMPushOptions.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. /*!
  2. * \~chinese
  3. * @header EMPushOptions.h
  4. * @abstract 消息推送的设置选项
  5. * @author Hyphenate
  6. * @version 3.00
  7. *
  8. * \~english
  9. * @header EMPushOptions.h
  10. * @abstract Setting options of Apple Push Notification
  11. * @author Hyphenate
  12. * @version 3.00
  13. */
  14. #import <Foundation/Foundation.h>
  15. #define kPushNickname @"nickname"
  16. #define kPushDisplayStyle @"notification_display_style"
  17. #define kPushNoDisturbing @"notification_no_disturbing"
  18. #define kPushNoDisturbingStartH @"notification_no_disturbing_start"
  19. #define kPushNoDisturbingStartM @"notification_no_disturbing_startM"
  20. #define kPushNoDisturbingEndH @"notification_no_disturbing_end"
  21. #define kPushNoDisturbingEndM @"notification_no_disturbing_endM"
  22. /*!
  23. * \~chinese
  24. * 推送消息的显示风格
  25. *
  26. * \~english
  27. * Display style of push message
  28. */
  29. typedef enum {
  30. EMPushDisplayStyleSimpleBanner = 0, /*!
  31. * \~chinese
  32. * 简单显示"您有一条新消息"
  33. *
  34. * \~english
  35. * Simply show "You have a new message"
  36. */
  37. EMPushDisplayStyleMessageSummary, /*!
  38. * \~chinese
  39. * 显示消息内容
  40. *
  41. * \~english
  42. * Show message's content
  43. */
  44. } EMPushDisplayStyle;
  45. /*!
  46. * \~chinese
  47. * 推送免打扰设置的状态
  48. *
  49. * \~english
  50. * Status of Push Notification no-disturb setting
  51. */
  52. typedef enum {
  53. EMPushNoDisturbStatusDay = 0, /*! \~chinese 全天免打扰 \~english The whole day */
  54. EMPushNoDisturbStatusCustom, /*! \~chinese 自定义时间段免打扰 \~english User defined period */
  55. EMPushNoDisturbStatusClose, /*! \~chinese 关闭免打扰 \~english Close no-disturb mode */
  56. } EMPushNoDisturbStatus;
  57. /*!
  58. * \~chinese
  59. * 消息推送的设置选项
  60. *
  61. * \~english
  62. * Apple Push Notification setting options
  63. */
  64. @interface EMPushOptions : NSObject
  65. /*!
  66. * \~chinese
  67. * 推送消息显示的昵称
  68. *
  69. * \~english
  70. * User's nickname to be displayed in apple push notification service messages
  71. */
  72. @property (nonatomic, copy) NSString *displayName;
  73. /*!
  74. * \~chinese
  75. * 推送消息显示的类型
  76. *
  77. * \~english
  78. * Display style of notification message
  79. */
  80. @property (nonatomic) EMPushDisplayStyle displayStyle;
  81. /*!
  82. * \~chinese
  83. * 消息推送的免打扰设置
  84. *
  85. * \~english
  86. * No disturbing setting of notification message
  87. */
  88. @property (nonatomic) EMPushNoDisturbStatus noDisturbStatus;
  89. /*!
  90. * \~chinese
  91. * 消息推送免打扰开始时间,小时,暂时只支持整点(小时)
  92. *
  93. * \~english
  94. * No disturbing mode start time (in hour)
  95. */
  96. @property (nonatomic) NSInteger noDisturbingStartH;
  97. /*!
  98. * \~chinese
  99. * 消息推送免打扰结束时间,小时,暂时只支持整点(小时)
  100. *
  101. * \~english
  102. * No disturbing mode end time (in hour)
  103. */
  104. @property (nonatomic) NSInteger noDisturbingEndH;
  105. #pragma mark - EM_DEPRECATED_IOS
  106. @property (nonatomic, copy) NSString *nickname __deprecated_msg("Use - displayName");
  107. @end