1 package com.netease.nimlib.sdk.avsignalling.model;
6 import java.io.Serializable;
17 private String pushTitle;
18 private String pushContent;
19 private String pushPayload;
28 this.pushTitle = pushTitle;
29 this.pushContent = pushContent;
38 public SignallingPushConfig(
boolean needPush, String pushTitle, String pushContent, Map<String, Object> pushPayload) {
39 this(
needPush, pushTitle, pushContent);
40 this.pushPayload = MsgHelper.getJsonStringFromMap(pushPayload);
76 public static final class SignallingPushConfigBuilder {
78 private boolean needBadge =
true;
79 private String pushTitle;
80 private String pushContent;
81 private String pushPayload;
83 public SignallingPushConfigBuilder(
boolean needPush) {
87 public SignallingPushConfigBuilder withNeedBadge(
boolean needBadge) {
92 public SignallingPushConfigBuilder withPushTitle(String pushTitle) {
93 this.pushTitle = pushTitle;
97 public SignallingPushConfigBuilder withPushContent(String pushContent) {
98 this.pushContent = pushContent;
102 public SignallingPushConfigBuilder withPushPayload(String pushPayload) {
103 this.pushPayload = pushPayload;
109 signallingPushConfig.pushPayload = this.pushPayload;
110 signallingPushConfig.needBadge = this.
needBadge;
111 return signallingPushConfig;
boolean needPush()
是否需要push
String getPushPayload()
获取推送扩展
String getPushTitle()
获取推送标题
SignallingPushConfig(boolean needPush, String pushTitle, String pushContent)
String getPushContent()
获取推送内容
SignallingPushConfig(boolean needPush, String pushTitle, String pushContent, Map< String, Object > pushPayload)