NIMSDK-AOS  9.16.0
QChatGetByPageResult.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.result;
2 
3 public abstract class QChatGetByPageResult {
7  protected final boolean hasMore;
8 
12  protected final long nextTimeTag;
13 
14  protected QChatGetByPageResult() {
15  this.hasMore = false;
16  this.nextTimeTag = 0;
17  }
18 
19  protected QChatGetByPageResult(boolean hasMore, long nextTimeTag) {
20  this.hasMore = hasMore;
21  this.nextTimeTag = nextTimeTag;
22  }
23 
28  public boolean isHasMore() {
29  return hasMore;
30  }
31 
36  public long getNextTimeTag() {
37  return nextTimeTag;
38  }
39 
40  @Override
41  public String toString() {
42  return "QChatGetByPageResult{" +
43  "hasMore=" + hasMore +
44  ", nextTimeTag=" + nextTimeTag +
45  '}';
46  }
47 }
final boolean hasMore
表示是否还有下一页
final long nextTimeTag
下一次翻页时的起始时间戳
boolean isHasMore()
获取是否还有下一页的标志
long getNextTimeTag()
获取下一次翻页时的起始时间戳