NIMSDK-AOS  10.6.0
QChatUpdateMessageParam.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.param;
2 
3 import androidx.annotation.NonNull;
5 import java.util.Map;
6 
11 
15  @NonNull
16  private final QChatUpdateParam updateParam;
20  @NonNull
21  private final Long serverId;
25  @NonNull
26  private final Long channelId;
30  @NonNull
31  private final Long time;
35  @NonNull
36  private final Long msgIdServer;
40  private String body;
44  private Map<String, Object> extension;
45 
49  private Integer serverStatus;
50 
54  private QChatMessageAntiSpamOption antiSpamOption;
58  private Integer subType;
59 
68  public QChatUpdateMessageParam(@NonNull QChatUpdateParam updateParam, long serverId, long channelId, long time, long msgIdServer) {
69  this.updateParam = updateParam;
70  this.serverId = serverId;
71  this.channelId = channelId;
72  this.time = time;
73  this.msgIdServer = msgIdServer;
74  }
75 
79  @NonNull
81  return updateParam;
82  }
83 
87  @NonNull
88  public Long getServerId() {
89  return serverId;
90  }
91 
95  @NonNull
96  public Long getChannelId() {
97  return channelId;
98  }
99 
103  @NonNull
104  public Long getTime() {
105  return time;
106  }
107 
111  @NonNull
112  public Long getMsgIdServer() {
113  return msgIdServer;
114  }
115 
119  public String getBody() {
120  return body;
121  }
122 
127  public void setBody(String body) {
128  this.body = body;
129  }
130 
134  public Map<String, Object> getExtension() {
135  return extension;
136  }
137 
142  public void setExtension(Map<String, Object> extension) {
143  this.extension = extension;
144  }
145 
149  public Integer getServerStatus() {
150  return serverStatus;
151  }
152 
157  public void setServerStatus(Integer serverStatus) {
158  this.serverStatus = serverStatus;
159  }
160 
166  return antiSpamOption;
167  }
168 
173  public void setAntiSpamOption(QChatMessageAntiSpamOption antiSpamOption) {
174  this.antiSpamOption = antiSpamOption;
175  }
176 
181  public Integer getSubType() {
182  return subType;
183  }
184 
189  public void setSubType(Integer subType) {
190  this.subType = subType;
191  }
192 }
void setExtension(Map< String, Object > extension)
设置更新的消息自定义扩展
消息/系统通知相关接口更新操作通用参数,设置该操作相关的附加字段,设置该操作引发的推送内容 ...
void setServerStatus(Integer serverStatus)
设置消息状态,只能设置成自定义的状态(status>= 10000),否则提示414参数错误
Map< String, Object > getExtension()
获取更新的消息自定义扩展
QChatUpdateMessageParam(@NonNull QChatUpdateParam updateParam, long serverId, long channelId, long time, long msgIdServer)
void setAntiSpamOption(QChatMessageAntiSpamOption antiSpamOption)
设置消息反垃圾配置选项
QChatMessageAntiSpamOption getAntiSpamOption()
获取消息反垃圾配置选项
QChatUpdateParam getUpdateParam()
获取更新操作通用参数