Class BareboneToggle
- java.lang.Object
-
- org.telegram.abilitybots.api.toggle.BareboneToggle
-
- All Implemented Interfaces:
AbilityToggle
public class BareboneToggle extends Object implements AbilityToggle
This toggle can be used as-is to turn off ALL the default abilities supplied by the library. This is for users who are interested in the barebone functionality of AbilityBot.
-
-
Constructor Summary
Constructors Constructor Description BareboneToggle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisOff(Ability ability)AbilityprocessAbility(Ability ab)Abilities that are ON (and have failed theAbilityToggle.isOff(org.telegram.abilitybots.api.objects.Ability)condition) will be processed by this method.
-
-
-
Method Detail
-
isOff
public boolean isOff(Ability ability)
- Specified by:
isOffin interfaceAbilityToggle- Parameters:
ability- the target ability- Returns:
- true if the ability has been turned off
-
processAbility
public Ability processAbility(Ability ab)
Description copied from interface:AbilityToggleAbilities that are ON (and have failed theAbilityToggle.isOff(org.telegram.abilitybots.api.objects.Ability)condition) will be processed by this method.- Specified by:
processAbilityin interfaceAbilityToggle- Parameters:
ab- the target ability- Returns:
- the processed ability
-
-