NIMSDK-AOS
9.19.0
plugins
qchat
src
main
java
com
netease
nimlib
sdk
qchat
enums
QChatRoleOption.java
浏览该文件的文档.
1
package
com.netease.nimlib.sdk.qchat.enums;
2
3
import
android.text.TextUtils;
4
5
/**
6
* 身份组权限选项
7
*/
8
public
enum
QChatRoleOption
{
9
/**
10
* 有权限
11
*/
12
ALLOW
(1),
13
/**
14
* 无权限
15
*/
16
DENY
(-1),
17
/**
18
* 继承
19
*/
20
INHERIT
(0),
21
;
22
23
private
int
value;
24
25
QChatRoleOption
(
int
value) {
26
this.value = value;
27
}
28
29
public
int
getValue
() {
30
return
value;
31
}
32
33
public
static
QChatRoleOption
typeOfValue
(
int
value) {
34
for
(
QChatRoleOption
e : values()) {
35
if
(e.getValue() == value) {
36
return
e;
37
}
38
}
39
return
null;
40
}
41
42
public
static
QChatRoleOption
typeOfName
(String name) {
43
for
(
QChatRoleOption
e : values()) {
44
if
(TextUtils.equals(e.name(), name)) {
45
return
e;
46
}
47
}
48
return
null;
49
}
50
}
com.netease.nimlib.sdk.qchat.enums.QChatRoleOption.DENY
DENY
无权限
Definition:
QChatRoleOption.java:16
com.netease.nimlib.sdk.qchat.enums.QChatRoleOption.ALLOW
ALLOW
有权限
Definition:
QChatRoleOption.java:12
com.netease.nimlib.sdk.qchat.enums.QChatRoleOption
身份组权限选项
Definition:
QChatRoleOption.java:8
com.netease.nimlib.sdk.qchat.enums.QChatRoleOption.typeOfValue
static QChatRoleOption typeOfValue(int value)
Definition:
QChatRoleOption.java:33
com.netease.nimlib.sdk.qchat.enums.QChatRoleOption.getValue
int getValue()
Definition:
QChatRoleOption.java:29
com.netease.nimlib.sdk.qchat.enums.QChatRoleOption.QChatRoleOption
QChatRoleOption(int value)
Definition:
QChatRoleOption.java:25
com.netease.nimlib.sdk.qchat.enums.QChatRoleOption.typeOfName
static QChatRoleOption typeOfName(String name)
Definition:
QChatRoleOption.java:42
com.netease.nimlib.sdk.qchat.enums.QChatRoleOption.INHERIT
INHERIT
继承
Definition:
QChatRoleOption.java:20
生成于 2024年 十月 16日 星期三 10:25:05 , 为 NIMSDK-AOS使用
1.8.13