Package com.gmt2001.twitch.eventsub
Class EventSubSubscription
java.lang.Object
com.gmt2001.twitch.eventsub.EventSubSubscription
EventSub Subscription Data
- Author:
- gmt2001
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe status of an EventSub subscription -
Method Summary
Modifier and TypeMethodDescriptionSubscription-specific parameters.intcost()How much the subscription counts against your limit.The time the subscription was created.booleaninthashCode()id()The subscription's unique id.booleanIndicates if the subscription is enabled and valid.booleanIndicates if the subscription is pending.booleanIndicates if the subscription has been revoked for any reason.status()The status of the subscription.Transport-specific parameters.type()The subscription's type.version()The version of the subscription.
-
Method Details
-
isEnabled
public boolean isEnabled()Indicates if the subscription is enabled and valid.- Returns:
-
isRevoked
public boolean isRevoked()Indicates if the subscription has been revoked for any reason.- Returns:
-
isPending
public boolean isPending()Indicates if the subscription is pending.- Returns:
-
id
The subscription's unique id.- Returns:
-
status
The status of the subscription.- Returns:
-
type
The subscription's type.- Returns:
-
version
The version of the subscription.- Returns:
-
cost
public int cost()How much the subscription counts against your limit. See https://dev.twitch.tv/docs/eventsub#subscription-limits for more information.- Returns:
-
condition
Subscription-specific parameters.- Returns:
-
createdAt
The time the subscription was created.- Returns:
-
transport
Transport-specific parameters.- Returns:
-
hashCode
public int hashCode() -
equals
-