Package com.gmt2001.twitch.eventsub
Enum Class EventSubSubscription.SubscriptionStatus
java.lang.Object
java.lang.Enum<EventSubSubscription.SubscriptionStatus>
com.gmt2001.twitch.eventsub.EventSubSubscription.SubscriptionStatus
- All Implemented Interfaces:
Serializable
,Comparable<EventSubSubscription.SubscriptionStatus>
,Constable
- Enclosing class:
- EventSubSubscription
public static enum EventSubSubscription.SubscriptionStatus
extends Enum<EventSubSubscription.SubscriptionStatus>
The status of an EventSub subscription
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe subscription was removed via API request, probably by a script on the bot.Authorization for user(s) in the condition was revoked.Designates that the subscription is in an operable state and is valid.The moderator that authorized the subscription is no longer one of the broadcaster's moderators.Subscription proposal that has not been submitted to the EventSub endpoint for creation yet.Notification delivery failure rate was too high.A user in the condition of the subscription was removed.The specific version of the subscription type was removed.Webhook failed verification of the callback specified in the subscription creation request.Webhook is pending verification of the callback specified in the subscription creation request.The client failed to subscribe to events within the required time.The client closed the connection.The client failed to respond to a ping message.The Twitch WebSocket server experienced an unexpected error.The Twitch WebSocket server experienced a network error writing the message to the client.The Twitch WebSocket server timed out writing the message to the client.The client sent a non-pong message. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ENABLED
Designates that the subscription is in an operable state and is valid. -
WEBHOOK_CALLBACK_VERIFICATION_PENDING
Webhook is pending verification of the callback specified in the subscription creation request. -
WEBHOOK_CALLBACK_VERIFICATION_FAILED
Webhook failed verification of the callback specified in the subscription creation request. -
NOTIFICATION_FAILURES_EXCEEDED
Notification delivery failure rate was too high. -
AUTHORIZATION_REVOKED
Authorization for user(s) in the condition was revoked. -
MODERATOR_REMOVED
The moderator that authorized the subscription is no longer one of the broadcaster's moderators. -
USER_REMOVED
A user in the condition of the subscription was removed. -
VERSION_REMOVED
The specific version of the subscription type was removed. -
WEBSOCKET_DISCONNECTED
The client closed the connection. -
WEBSOCKET_FAILED_PING_PONG
The client failed to respond to a ping message. -
WEBSOCKET_RECEIVED_INBOUND_TRAFFIC
The client sent a non-pong message. -
WEBSOCKET_CONNECTION_UNUSED
The client failed to subscribe to events within the required time. -
WEBSOCKET_INTERNAL_ERROR
The Twitch WebSocket server experienced an unexpected error. -
WEBSOCKET_NETWORK_TIMEOUT
The Twitch WebSocket server timed out writing the message to the client. -
WEBSOCKET_NETWORK_ERROR
The Twitch WebSocket server experienced a network error writing the message to the client. -
API_REMOVED
The subscription was removed via API request, probably by a script on the bot. -
NOT_CREATED_YET
Subscription proposal that has not been submitted to the EventSub endpoint for creation yet.
-
-
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
-