NIMSDK-AOS  9.20.10
QChatGetExistingAccidsOfMemberRolesParam.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.param;
2 
3 import androidx.annotation.NonNull;
4 
5 import java.util.List;
6 
7 /**
8  * "查询一批accids中存在服务器身份组的列表"接口入参
9  */
11 
12  /**
13  * 服务器Id
14  */
15  @NonNull
16  private final Long serverId;
17 
18  /**
19  * 频道Id
20  */
21  @NonNull
22  private final Long channelId;
23 
24  /**
25  * accid列表
26  */
27  @NonNull
28  private final List<String> accids;
29 
30  /**
31  *
32  * @param serverId 服务器id
33  * @param channelId 频道id
34  * @param accids accid列表
35  */
36  public QChatGetExistingAccidsOfMemberRolesParam(@NonNull Long serverId, @NonNull Long channelId, @NonNull List<String> accids) {
37  this.serverId = serverId;
38  this.channelId = channelId;
39  this.accids = accids;
40  }
41 
42  /**
43  * 获取服务器Id
44  */
45  @NonNull
46  public Long getServerId() {
47  return serverId;
48  }
49 
50  /**
51  * 获取频道Id
52  */
53  @NonNull
54  public Long getChannelId() {
55  return channelId;
56  }
57 
58  /**
59  * 获取accid列表
60  */
61  @NonNull
62  public List<String> getAccids() {
63  return accids;
64  }
65 
66  @Override
67  public String toString() {
68  return "QChatGetExistingAccidsOfMemberRolesParam{" +
69  "serverId=" + serverId +
70  ", channelId=" + channelId +
71  ", accids=" + accids +
72  '}';
73  }
74 }
QChatGetExistingAccidsOfMemberRolesParam(@NonNull Long serverId,@NonNull Long channelId,@NonNull List< String > accids)