NIMSDK-AOS  9.21.15
QChatGetMessageThreadInfosParam.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.param;
2 
3 import androidx.annotation.NonNull;
5 import java.util.List;
6 
8  /**
9  * 服务器Id
10  */
11  @NonNull
12  private final long serverId;
13  /**
14  * 频道Id
15  */
16  private final long channelId;
17  /**
18  * 消息列表,一次最多查询100条
19  */
20  private final List<? extends QChatMessage> msgList;
21 
22  /**
23  *
24  * @param serverId 服务器Id
25  * @param channelId 频道Id
26  * @param msgList 消息列表,一次最多查询100条
27  */
28  public QChatGetMessageThreadInfosParam(long serverId, long channelId, List<? extends QChatMessage> msgList) {
29  this.serverId = serverId;
30  this.channelId = channelId;
31  this.msgList = msgList;
32  }
33 
34  /**
35  * 获取服务器Id
36  * @return
37  */
38  public long getServerId() {
39  return serverId;
40  }
41 
42  /**
43  * 获取频道Id
44  * @return
45  */
46  public long getChannelId() {
47  return channelId;
48  }
49 
50  /**
51  * 获取消息列表
52  * @return
53  */
54  public List<? extends QChatMessage> getMsgList() {
55  return msgList;
56  }
57 }
QChatGetMessageThreadInfosParam(long serverId, long channelId, List<?extends QChatMessage > msgList)