NIMSDK-AOS  9.16.0
QChatUpdateSystemNotificationParam.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.param;
2 
3 import androidx.annotation.NonNull;
4 
6 
7 import java.util.Map;
8 
16  @NonNull
17  private final QChatUpdateParam updateParam;
21  @NonNull
22  private final Long msgIdServer;
26  @NonNull
27  private final QChatSystemNotificationType type;
31  private String body;
35  private Map<String, Object> extension;
39  private Integer status;
40 
48  public QChatUpdateSystemNotificationParam(@NonNull QChatUpdateParam updateParam, long msgIdServer,QChatSystemNotificationType type) {
49  this.updateParam = updateParam;
50  this.msgIdServer = msgIdServer;
51  this.type = type;
52  }
53 
57  @NonNull
59  return updateParam;
60  }
61 
65  @NonNull
66  public Long getMsgIdServer() {
67  return msgIdServer;
68  }
69 
73  @NonNull
75  return type;
76  }
77 
81  public String getBody() {
82  return body;
83  }
84 
89  public void setBody(String body) {
90  this.body = body;
91  }
92 
96  public Map<String, Object> getExtension() {
97  return extension;
98  }
99 
104  public void setExtension(Map<String, Object> extension) {
105  this.extension = extension;
106  }
107 
111  public Integer getStatus() {
112  return status;
113  }
114 
119  public void setStatus(Integer status) {
120  this.status = status;
121  }
122 }
消息/系统通知相关接口更新操作通用参数,设置该操作相关的附加字段,设置该操作引发的推送内容 ...
void setStatus(Integer status)
设置状态,只能设置成自定义的状态(status>= 10000),否则提示414参数错误
QChatUpdateSystemNotificationParam(@NonNull QChatUpdateParam updateParam, long msgIdServer, QChatSystemNotificationType type)
只能更新isPersistEnable为true的通知