public enum YWTribeRole extends Enum<YWTribeRole>
| Enum Constant and Description |
|---|
TRIBE_HOST
群主
|
TRIBE_MANAGER
群管理员
|
TRIBE_MEMBER
普通群成员
|
| Modifier and Type | Field and Description |
|---|---|
String |
description
群成员角色描述
|
int |
type
群成员角色类型
|
| Modifier and Type | Method and Description |
|---|---|
static YWTribeRole |
getEnumDescription(String description)
根据群成员角色描述获取对应的YWTribeRole对象
|
static YWTribeRole |
getEnumType(int type)
根据群成员角色类型获取对应的YWTribeRole对象
|
static YWTribeRole |
valueOf(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 String description
public int type
public static YWTribeRole[] values()
for (YWTribeRole c : YWTribeRole.values()) System.out.println(c);
public static YWTribeRole valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic static YWTribeRole getEnumType(int type)
type - 群成员角色类型public static YWTribeRole getEnumDescription(String description)
description - 群成员角色描述