Class PrayerToggleGuard.Toggle
java.lang.Object
privbot.mechanics.PrayerToggleGuard.Toggle
- Enclosing class:
PrayerToggleGuard
One unconfirmed toggle: the direction asked for and when it was sent. Immutable value; keep one per prayer.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Toggle
public Toggle(boolean enabled, long atMs) - Parameters:
enabled- true when the toggle asked to turn the prayer onatMs- when it was sent, in milliseconds
-
-
Method Details
-
enabled
public boolean enabled()- Returns:
- true when the toggle asked to turn the prayer on
-
atMs
public long atMs()- Returns:
- when it was sent, in milliseconds
-
equals
-
hashCode
-
toString
-