NIMSDK-AOS  9.19.0
QChatGetLastMessageOfChannelsParam.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.param;
2 
3 import androidx.annotation.NonNull;
4 import java.util.List;
5 
6 /**
7  * "查询历史消息"接口入参
8  */
10 
11  /**
12  * 服务器Id
13  */
14  @NonNull
15  private final Long serverId;
16  /**
17  * 频道Id列表,最多20个,要求都是serverId下的
18  */
19  @NonNull
20  private final List<Long> channelIds;
21 
22  /**
23  *
24  * @param serverId 服务器Id
25  * @param channelIds 频道Id列表,最多20个,要求都是serverId下的
26  */
27  public QChatGetLastMessageOfChannelsParam(@NonNull Long serverId, @NonNull List<Long> channelIds) {
28  this.serverId = serverId;
29  this.channelIds = channelIds;
30  }
31 
32  /**
33  * 获取服务器Id
34  * @return
35  */
36  @NonNull
37  public Long getServerId() {
38  return serverId;
39  }
40 
41  /**
42  * 获取频道Id列表
43  * @return
44  */
45  @NonNull
46  public List<Long> getChannelIds() {
47  return channelIds;
48  }
49 }
QChatGetLastMessageOfChannelsParam(@NonNull Long serverId, @NonNull List< Long > channelIds)