NIMSDK-AOS 10.4.0-beta
载入中...
搜索中...
未找到
QChatUpdateChannelCategoryBlackWhiteRolesParam.java
浏览该文件的文档.
1package com.netease.nimlib.sdk.qchat.param;
2
3import androidx.annotation.NonNull;
4import com.netease.nimlib.sdk.qchat.enums.QChatChannelBlackWhiteOperateType;
5import com.netease.nimlib.sdk.qchat.enums.QChatChannelBlackWhiteType;
6
7/**
8 * "更新频道分组黑白名单身份组"接口入参
9 */
11 /**
12 * 服务器Id
13 */
14 @NonNull
15 private final Long serverId;
16
17 /**
18 * 频道分组Id
19 */
20 @NonNull
21 private final Long categoryId;
22
23 /**
24 * 黑白名单类型
25 */
26 @NonNull
27 private final QChatChannelBlackWhiteType type;
28
29 /**
30 * 黑白名单操作类型
31 */
32 @NonNull
33 private final QChatChannelBlackWhiteOperateType operateType;
34
35 /**
36 * 身份组Id:添加或者移除到黑白名单的服务器身份组Id
37 */
38 @NonNull
39 private final Long roleId;
40
41 /**
42 *
43 * @param serverId 服务器Id
44 * @param categoryId 频道分组Id
45 * @param type 黑白名单类型
46 * @param operateType 黑白名单操作类型
47 * @param roleId 身份组Id:添加或者移除到黑白名单的服务器身份组Id
48 */
49 public QChatUpdateChannelCategoryBlackWhiteRolesParam(@NonNull Long serverId, @NonNull Long categoryId, @NonNull QChatChannelBlackWhiteType type, @NonNull QChatChannelBlackWhiteOperateType operateType, @NonNull Long roleId) {
50 this.serverId = serverId;
51 this.categoryId = categoryId;
52 this.type = type;
53 this.operateType = operateType;
54 this.roleId = roleId;
55 }
56
57 /**
58 * 获取服务器Id
59 * @return
60 */
61 @NonNull
62 public Long getServerId() {
63 return serverId;
64 }
65
66 /**
67 * 获取频道分组Id
68 * @return
69 */
70 @NonNull
71 public Long getCategoryId() {
72 return categoryId;
73 }
74
75 /**
76 * 获取黑白名单类型
77 * @return
78 */
79 @NonNull
81 return type;
82 }
83
84 /**
85 * 获取黑白名单操作类型
86 * @return
87 */
88 @NonNull
90 return operateType;
91 }
92
93 /**
94 * 获取身份组Id:添加或者移除到黑白名单的服务器身份组Id
95 * @return
96 */
97 @NonNull
98 public Long getRoleId() {
99 return roleId;
100 }
101}
QChatUpdateChannelCategoryBlackWhiteRolesParam(@NonNull Long serverId, @NonNull Long categoryId, @NonNull QChatChannelBlackWhiteType type, @NonNull QChatChannelBlackWhiteOperateType operateType, @NonNull Long roleId)
Long getRoleId()
获取身份组Id:添加或者移除到黑白名单的服务器身份组Id