NIMSDK-AOS  9.16.0
QChatServerMarkReadResult.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.result;
2 
3 import java.io.Serializable;
4 import java.util.List;
5 
9 public class QChatServerMarkReadResult implements Serializable {
10 
11  private final List<Long> successServerIds;
12  private final List<Long> failedServerIds;
13  private final long timestamp;
14 
15  public QChatServerMarkReadResult(List<Long> successServerIds, List<Long> failedServerIds, long timestamp) {
16  this.successServerIds = successServerIds;
17  this.failedServerIds = failedServerIds;
18  this.timestamp = timestamp;
19  }
20 
25  public List<Long> getSuccessServerIds() {
26  return successServerIds;
27  }
31  public List<Long> getFailedServerIds() {
32  return failedServerIds;
33  }
34 
39  public long getTimestamp() {
40  return timestamp;
41  }
42 
43  @Override
44  public String toString() {
45  return "QChatServerMarkReadResult{" +
46  "successServerIds=" + successServerIds +
47  ", failedServerIds=" + failedServerIds +
48  '}';
49  }
50 }
long getTimestamp()
清空未读的服务器时间戳,这个时间戳之前的频道消息都认为是已读
List< Long > getSuccessServerIds()
清空未读数成功的serverId列表
List< Long > getFailedServerIds()
清空未读数失败的serverId列表
QChatServerMarkReadResult(List< Long > successServerIds, List< Long > failedServerIds, long timestamp)