public enum ChatMemberStatus extends Enum<ChatMemberStatus>
| Enum Constant and Description |
|---|
ADMINISTRATOR |
CREATOR |
KICKED |
LEFT |
MEMBER |
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
static ChatMemberStatus |
getType(String value)
Get a ChatMemberStatus enum based on the provided string value
|
String |
getValue()
Gets the Telegram Bot API version of this enum
|
static ChatMemberStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChatMemberStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChatMemberStatus CREATOR
public static final ChatMemberStatus ADMINISTRATOR
public static final ChatMemberStatus MEMBER
public static final ChatMemberStatus LEFT
public static final ChatMemberStatus KICKED
public static final ChatMemberStatus UNKNOWN
public static ChatMemberStatus[] values()
for (ChatMemberStatus c : ChatMemberStatus.values()) System.out.println(c);
public static ChatMemberStatus 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 getValue()
public static ChatMemberStatus getType(String value)
value - The value you want to match a ChatMemberStatus toCopyright © 2017. All rights reserved.