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