NIMSDK-AOS  9.16.3
QChatGetCommentatorsResult.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.result;
4 
5 import java.io.Serializable;
6 import java.util.List;
7 
8 public class QChatGetCommentatorsResult implements Serializable {
9 
13  private final List<QChatCommentator> commentators;
14 
18  private final boolean hasMore;
19 
26  private final String pageToken;
27 
31  private final int total;
32 
33 
34  public QChatGetCommentatorsResult(List<QChatCommentator> commentators, boolean hasMore, String pageToken, int total) {
35  this.commentators = commentators;
36  this.hasMore = hasMore;
37  this.pageToken = pageToken;
38  this.total = total;
39  }
40 
45  public List<QChatCommentator> getCommentators() {
46  return commentators;
47  }
48 
53  public boolean isHasMore() {
54  return hasMore;
55  }
56 
61  public String getPageToken() {
62  return pageToken;
63  }
64 
69  public int getTotal() {
70  return total;
71  }
72 
73  @Override
74  public String toString() {
75  return "QChatGetCommentatorsResult{" +
76  "commentators.size=" + (commentators == null ? "0" : commentators.size()) + ", " +
77  "hasMore=" + hasMore + ", " +
78  "pageToken=" + pageToken + ", " +
79  "total=" + total +
80  '}';
81  }
82 }
QChatGetCommentatorsResult(List< QChatCommentator > commentators, boolean hasMore, String pageToken, int total)
List< QChatCommentator > getCommentators()
获取评论者的信息