NIMSDK-AOS  10.5.0
QChatUpdateParam.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.param;
2 
3 import androidx.annotation.NonNull;
4 import java.util.Map;
5 
6 
10 public class QChatUpdateParam {
14  @NonNull
15  private String postscript = "";
19  private String extension;
23  private String pushContent;
27  private Map<String, Object> pushPayload;
31  private boolean routeEnable = true;
35  private String env;
36 
41  public void setPostscript(@NonNull String postscript) {
42  this.postscript = postscript;
43  }
44 
48  @NonNull
49  public String getPostscript() {
50  return postscript;
51  }
52 
57  public void setExtension(String extension) {
58  this.extension = extension;
59  }
60 
64  public String getExtension() {
65  return extension;
66  }
67 
72  public void setPushContent(String pushContent) {
73  this.pushContent = pushContent;
74  }
75 
79  public String getPushContent() {
80  return pushContent;
81  }
82 
87  public void setPushPayload(Map<String, Object> pushPayload) {
88  this.pushPayload = pushPayload;
89  }
90 
94  public Map<String, Object> getPushPayload() {
95  return pushPayload;
96  }
101  public boolean isRouteEnable() {
102  return routeEnable;
103  }
108  public void setRouteEnable(boolean routeEnable) {
109  this.routeEnable = routeEnable;
110  }
117  public String getEnv() {
118  return env;
119  }
126  public void setEnv(String env) {
127  this.env = env;
128  }
129 }
消息/系统通知相关接口更新操作通用参数,设置该操作相关的附加字段,设置该操作引发的推送内容 ...
boolean isRouteEnable()
是否需要抄送,默认true
void setPushContent(String pushContent)
设置推送文案
void setRouteEnable(boolean routeEnable)
设置是否需要抄送
void setExtension(String extension)
设置操作扩展字段
String getEnv()
获取环境变量 用户可以根据不同的env配置不同的抄送和回调地址
void setPostscript(@NonNull String postscript)
设置操作附言
void setEnv(String env)
设置环境变量 用户可以根据不同的env配置不同的抄送和回调地址
Map< String, Object > getPushPayload()
获取推送payload
void setPushPayload(Map< String, Object > pushPayload)
设置推送payload,SDK会转成json字符串使用