NIMSDK-AOS  9.19.0
QChatSearchServerByPageResult.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.result;
2 
4 import java.io.Serializable;
5 import java.util.List;
6 
7 public class QChatSearchServerByPageResult extends QChatGetByPageWithCursorResult implements Serializable {
8  /**
9  * 查询到的服务器
10  */
11  private final List<QChatServer> servers;
12 
13  public QChatSearchServerByPageResult(String cursor, List<QChatServer> servers) {
14  super(cursor);
15  this.servers = servers;
16  }
17 
19  List<QChatServer> servers) {
20  super(hasMore, nextTimeTag, cursor);
21  this.servers = servers;
22  }
23 
24  /**
25  * 获取查询到的服务器
26  */
27  public List<QChatServer> getServers() {
28  return servers;
29  }
30 
31  @Override
32  public String toString() {
33  return "QChatSearchServerByPageResult{" +
34  "hasMore=" + hasMore +
35  ", nextTimeTag=" + nextTimeTag +
36  ", cursor='" + cursor + '\'' +
37  ", servers=" + servers +
38  '}';
39  }
40 }
QChatSearchServerByPageResult(boolean hasMore, long nextTimeTag, String cursor, List< QChatServer > servers)
final boolean hasMore
表示是否还有下一页
String cursor
可选:查询游标,下次查询的起始位置
final long nextTimeTag
下一次翻页时的起始时间戳