Package com.github.twitch4j.helix.domain
Enum Class SubscriptionEvent.Type
- All Implemented Interfaces:
Serializable
,Comparable<SubscriptionEvent.Type>
,Constable
- Enclosing class:
- SubscriptionEvent
The type of event in the event_data payload.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionWhen a user who is subscribed to a broadcaster notifies the broadcaster of their subscription in the chat.When the subscription payment is processed and the user has officially started their subscription.When a user’s subscription ends. -
Method Summary
Modifier and TypeMethodDescriptionstatic SubscriptionEvent.Type
Returns the enum constant of this class with the specified name.static SubscriptionEvent.Type[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUBSCRIBE
When the subscription payment is processed and the user has officially started their subscription. -
UNSUBSCRIBE
When a user’s subscription ends. -
NOTIFICATION
When a user who is subscribed to a broadcaster notifies the broadcaster of their subscription in the chat.
-
-
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
-