1 package com.netease.nimlib.sdk.v2.notification.config;
10 private final boolean pushEnabled;
12 private final boolean pushNickEnabled;
14 private final String pushContent;
16 private final String pushPayload;
18 private final boolean forcePush;
20 private final String forcePushContent;
22 private final List<String> forcePushAccountIds;
28 private V2NIMNotificationPushConfig(
boolean pushEnabled,
boolean pushNickEnabled, String pushContent, String pushPayload,
boolean forcePush, String forcePushContent, List<String> forcePushAccountIds) {
29 this.pushEnabled = pushEnabled;
30 this.pushNickEnabled = pushNickEnabled;
31 this.pushContent = pushContent;
32 this.pushPayload = pushPayload;
33 this.forcePush = forcePush;
34 this.forcePushContent = forcePushContent;
35 this.forcePushAccountIds = forcePushAccountIds;
43 return pushNickEnabled;
59 return forcePushContent;
63 return forcePushAccountIds;
69 public static final class V2NIMNotificationPushConfigBuilder {
72 private String pushContent;
73 private String pushPayload;
74 private boolean forcePush;
75 private String forcePushContent;
76 private List<String> forcePushAccountIds;
78 private V2NIMNotificationPushConfigBuilder() {
81 public static V2NIMNotificationPushConfigBuilder builder() {
82 return new V2NIMNotificationPushConfigBuilder();
85 public V2NIMNotificationPushConfigBuilder withPushEnabled(
boolean pushEnabled) {
86 this.pushEnabled = pushEnabled;
90 public V2NIMNotificationPushConfigBuilder withPushNickEnabled(
boolean pushNickEnabled) {
91 this.pushNickEnabled = pushNickEnabled;
95 public V2NIMNotificationPushConfigBuilder withPushContent(String pushContent) {
96 this.pushContent = pushContent;
100 public V2NIMNotificationPushConfigBuilder withPushPayload(String pushPayload) {
101 this.pushPayload = pushPayload;
105 public V2NIMNotificationPushConfigBuilder withForcePush(
boolean forcePush) {
106 this.forcePush = forcePush;
110 public V2NIMNotificationPushConfigBuilder withForcePushContent(String forcePushContent) {
111 this.forcePushContent = forcePushContent;
115 public V2NIMNotificationPushConfigBuilder withForcePushAccountIds(List<String> forcePushAccountIds) {
116 this.forcePushAccountIds = forcePushAccountIds;
121 return new V2NIMNotificationPushConfig(pushEnabled, pushNickEnabled, pushContent, pushPayload, forcePush, forcePushContent, forcePushAccountIds);
static final boolean DEFAULT_PUSH_NICK_ENABLE
static final boolean DEFAULT_PUSH_ENABLE
String getForcePushContent()
List< String > getForcePushAccountIds()
static final boolean DEFAULT_PUSH_NICK_ENABLE
boolean isPushNickEnabled()
static final boolean DEFAULT_PUSH_ENABLE