NIMSDK-AOS 10.4.0-beta
载入中...
搜索中...
未找到
QChatGetExistingChannelBlackWhiteRolesParam.java
浏览该文件的文档.
1package com.netease.nimlib.sdk.qchat.param;
2
3import androidx.annotation.NonNull;
4
5import com.netease.nimlib.sdk.qchat.enums.QChatChannelBlackWhiteType;
6
7import java.util.List;
8
9/**
10 * "批量查询黑白名单身份组"接口入参
11 */
13 /**
14 * 服务器id
15 */
16 @NonNull
17 private final Long serverId;
18 /**
19 * 频道id
20 */
21 @NonNull
22 private final Long channelId;
23 /**
24 * 黑白名单类型
25 */
26 @NonNull
27 private final QChatChannelBlackWhiteType type;
28 /**
29 * 身份组Id列表,一次最多100个
30 */
31 @NonNull
32 private final List<Long> roleIds;
33
34 /**
35 *
36 * @param serverId 服务器id
37 * @param channelId 频道id
38 * @param type 黑白名单类型
39 * @param roleIds 身份组Id列表,一次最多100个
40 */
41 public QChatGetExistingChannelBlackWhiteRolesParam(@NonNull Long serverId, @NonNull Long channelId, @NonNull QChatChannelBlackWhiteType type, @NonNull List<Long> roleIds) {
42 this.serverId = serverId;
43 this.channelId = channelId;
44 this.type = type;
45 this.roleIds = roleIds;
46 }
47
48 /**
49 * 获取服务器id
50 * @return
51 */
52 @NonNull
53 public Long getServerId() {
54 return serverId;
55 }
56
57 /**
58 * 获取频道id
59 * @return
60 */
61 @NonNull
62 public Long getChannelId() {
63 return channelId;
64 }
65
66 /**
67 * 获取黑白名单类型
68 * @return
69 */
70 @NonNull
72 return type;
73 }
74
75 /**
76 * 获取身份组Id列表
77 * @return
78 */
79 @NonNull
80 public List<Long> getRoleIds() {
81 return roleIds;
82 }
83}
QChatGetExistingChannelBlackWhiteRolesParam(@NonNull Long serverId, @NonNull Long channelId, @NonNull QChatChannelBlackWhiteType type, @NonNull List< Long > roleIds)