public enum YWTribeRole extends java.lang.Enum<YWTribeRole>
Enum Constant and Description |
---|
TRIBE_HOST
群主
|
TRIBE_MANAGER
群管理员
|
TRIBE_MEMBER
普通群成员
|
Modifier and Type | Field and Description |
---|---|
java.lang.String |
description
群成员角色描述
|
int |
type
群成员角色类型
|
Modifier and Type | Method and Description |
---|---|
static YWTribeRole |
getEnumDescription(java.lang.String description)
根据群成员角色描述获取对应的YWTribeRole对象
|
static YWTribeRole |
getEnumType(int type)
根据群成员角色类型获取对应的YWTribeRole对象
|
static YWTribeRole |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static YWTribeRole[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final YWTribeRole TRIBE_HOST
public static final YWTribeRole TRIBE_MANAGER
public static final YWTribeRole TRIBE_MEMBER
public static YWTribeRole[] values()
for (YWTribeRole c : YWTribeRole.values()) System.out.println(c);
public static YWTribeRole valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static YWTribeRole getEnumType(int type)
type
- 群成员角色类型public static YWTribeRole getEnumDescription(java.lang.String description)
description
- 群成员角色描述