NIMSDK-AOS  9.16.0
QChatGetChannelCategoriesByPageResult.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.result;
2 
4 import java.io.Serializable;
5 import java.util.List;
6 
7 public class QChatGetChannelCategoriesByPageResult extends QChatGetByPageResult implements Serializable {
8 
12  private final List<QChatChannelCategory> categories;
13 
14  public QChatGetChannelCategoriesByPageResult(List<QChatChannelCategory> categories) {
15  super();
16  this.categories = categories;
17  }
18 
19  public QChatGetChannelCategoriesByPageResult(boolean hasMore, long nextTimeTag, List<QChatChannelCategory> categories) {
20  super(hasMore, nextTimeTag);
21  this.categories = categories;
22  }
23 
28  public List<QChatChannelCategory> getCategories() {
29  return categories;
30  }
31 
32  @Override
33  public String toString() {
34  return "QChatGetChannelCategoriesByPageResult{" +
35  "hasMore=" + hasMore +
36  ", nextTimeTag=" + nextTimeTag +
37  ", categories=" + categories +
38  '}';
39  }
40 }
List< QChatChannelCategory > getCategories()
获取查询到的频道分组列表
final boolean hasMore
表示是否还有下一页
final long nextTimeTag
下一次翻页时的起始时间戳
QChatGetChannelCategoriesByPageResult(boolean hasMore, long nextTimeTag, List< QChatChannelCategory > categories)