NIMSDK-AOS 10.4.0-beta
载入中...
搜索中...
未找到
QChatGetQuickCommentsParam.java
浏览该文件的文档.
1package com.netease.nimlib.sdk.qchat.param;
2
3import androidx.annotation.NonNull;
4import com.netease.nimlib.sdk.qchat.model.QChatMessage;
5import 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 * 消息列表,1次最多20条
19 */
20 private final List<? extends QChatMessage> msgList;
21
22 /**
23 *
24 * @param serverId 服务器Id
25 * @param channelId 频道Id
26 * @param msgList 消息列表,1次最多20条
27 */
28 public QChatGetQuickCommentsParam(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}
List<? extends QChatMessage > getMsgList()
获取消息列表
QChatGetQuickCommentsParam(long serverId, long channelId, List<? extends QChatMessage > msgList)