public enum ConversationMemberRole extends Enum<ConversationMemberRole>
Modifier and Type | Method and Description |
---|---|
static ConversationMemberRole |
fromString(String role)
从角色名字生成实例
|
String |
getName()
获取角色名字
|
static ConversationMemberRole |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConversationMemberRole[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConversationMemberRole MANAGER
public static final ConversationMemberRole MEMBER
public static ConversationMemberRole[] values()
for (ConversationMemberRole c : ConversationMemberRole.values()) System.out.println(c);
public static ConversationMemberRole 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 String getName()
public static ConversationMemberRole fromString(String role)
role
- 角色名字Copyright © 2020, 美味书签(北京)信息技术有限公司 All rights reserved.