Enum CustomToggle.Property
- java.lang.Object
-
- java.lang.Enum<CustomToggle.Property>
-
- org.telegram.abilitybots.api.toggle.CustomToggle.Property
-
- All Implemented Interfaces:
Serializable,Comparable<CustomToggle.Property>
- Enclosing class:
- CustomToggle
public static enum CustomToggle.Property extends Enum<CustomToggle.Property>
List of all the properties recognized byCustomToggle. Can be used to programmatically get, set or remove default values.
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringkey()static CustomToggle.PropertyvalueOf(String name)Returns the enum constant of this type with the specified name.static CustomToggle.Property[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CLAIM_ENABLED
public static final CustomToggle.Property CLAIM_ENABLED
-
CLAIM_TOGGLE
public static final CustomToggle.Property CLAIM_TOGGLE
-
BAN_ENABLED
public static final CustomToggle.Property BAN_ENABLED
-
BAN_TOGGLE
public static final CustomToggle.Property BAN_TOGGLE
-
PROMOTE_ENABLED
public static final CustomToggle.Property PROMOTE_ENABLED
-
PROMOTE_TOGGLE
public static final CustomToggle.Property PROMOTE_TOGGLE
-
DEMOTE_ENABLED
public static final CustomToggle.Property DEMOTE_ENABLED
-
DEMOTE_TOGGLE
public static final CustomToggle.Property DEMOTE_TOGGLE
-
UNBAN_ENABLED
public static final CustomToggle.Property UNBAN_ENABLED
-
UNBAN_TOGGLE
public static final CustomToggle.Property UNBAN_TOGGLE
-
BACKUP_ENABLED
public static final CustomToggle.Property BACKUP_ENABLED
-
BACKUP_TOGGLE
public static final CustomToggle.Property BACKUP_TOGGLE
-
RECOVER_ENABLED
public static final CustomToggle.Property RECOVER_ENABLED
-
RECOVER_TOGGLE
public static final CustomToggle.Property RECOVER_TOGGLE
-
COMMANDS_ENABLED
public static final CustomToggle.Property COMMANDS_ENABLED
-
COMMANDS_TOGGLE
public static final CustomToggle.Property COMMANDS_TOGGLE
-
REPORT_ENABLED
public static final CustomToggle.Property REPORT_ENABLED
-
REPORT_TOGGLE
public static final CustomToggle.Property REPORT_TOGGLE
-
STATS_ENABLED
public static final CustomToggle.Property STATS_ENABLED
-
STATS_TOGGLE
public static final CustomToggle.Property STATS_TOGGLE
-
-
Method Detail
-
values
public static CustomToggle.Property[] 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 (CustomToggle.Property c : CustomToggle.Property.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CustomToggle.Property 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
-
key
public String key()
-
-