Package top.focess.qq.api.bot
Enum BotProtocol
- java.lang.Object
-
- java.lang.Enum<BotProtocol>
-
- top.focess.qq.api.bot.BotProtocol
-
- All Implemented Interfaces:
Serializable,Comparable<BotProtocol>
public enum BotProtocol extends Enum<BotProtocol>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANDROID_PADANDROID_PHONEANDROID_WATCHIPADMACOS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BotProtocolvalueOf(String name)Returns the enum constant of this type with the specified name.static BotProtocol[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ANDROID_PHONE
public static final BotProtocol ANDROID_PHONE
-
ANDROID_PAD
public static final BotProtocol ANDROID_PAD
-
ANDROID_WATCH
public static final BotProtocol ANDROID_WATCH
-
IPAD
public static final BotProtocol IPAD
-
MACOS
public static final BotProtocol MACOS
-
-
Method Detail
-
values
public static BotProtocol[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BotProtocol c : BotProtocol.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BotProtocol valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-