NIMSDK-AOS  9.19.0
QChatGetMentionedMeMessagesResult.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.result;
2 
4 import java.io.Serializable;
5 import java.util.List;
6 
7 /**
8  * 分页查询指定频道@我的消息接口 结果
9  */
10 public class QChatGetMentionedMeMessagesResult extends QChatGetByPageResult implements Serializable{
11 
12  /**
13  * 查询到的消息列表
14  */
15  private final List<QChatMessage> messages;
16 
17  public QChatGetMentionedMeMessagesResult(List<QChatMessage> messages) {
18  super();
19  this.messages = messages;
20  }
21 
22  public QChatGetMentionedMeMessagesResult(boolean hasMore, long nextTimeTag, List<QChatMessage> messages) {
23  super(hasMore, nextTimeTag);
24  this.messages = messages;
25  }
26 
27 
28  /**
29  * 获取查询到的消息列表
30  * @return
31  */
32  public List<QChatMessage> getMessages() {
33  return messages;
34  }
35 
36  @Override
37  public String toString() {
38  return "QChatGetMentionedMessagesResult{" +
39  "hasMore=" + hasMore +
40  ", nextTimeTag=" + nextTimeTag +
41  ", messages=" + messages +
42  '}';
43  }
44 }
final boolean hasMore
表示是否还有下一页
QChatGetMentionedMeMessagesResult(boolean hasMore, long nextTimeTag, List< QChatMessage > messages)
final long nextTimeTag
下一次翻页时的起始时间戳