Package com.caplin.streamlink.alerts
Enum Class TriggerState
- All Implemented Interfaces:
Serializable
,Comparable<TriggerState>
,Constable
Enumeration that defines the different states a Trigger
can be in
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionthe trigger is active and waiting for the condition to be metthe trigger is disabled/paused and will not trigger if the condition is metthe condition was met and a notification was triggeredInvalid state that only happens if the backend sends an unsupported state -
Method Summary
Modifier and TypeMethodDescriptionstatic TriggerState
Returns the enum constant of this class with the specified name.static TriggerState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACTIVE
the trigger is active and waiting for the condition to be met
-
INACTIVE
the trigger is disabled/paused and will not trigger if the condition is met
-
TRIGGERED
the condition was met and a notification was triggered
-
UNKNOWN
Invalid state that only happens if the backend sends an unsupported state
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-