Package com.github.twitch4j.eventsub
Class EventSubSubscription.EventSubSubscriptionBuilder
java.lang.Object
com.github.twitch4j.eventsub.EventSubSubscription.EventSubSubscriptionBuilder
- Enclosing class:
- EventSubSubscription
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
condition
(EventSubCondition condition) Object specifying custom parameters for the subscription.How much the subscription counts against your limit.Timestamp indicating when the subscription was created.ID of the subscription.isBatchingEnabled
(Boolean isBatchingEnabled) Whether events fired for this type are batched by Twitch.The category of the subscription.rawVersion
(String rawVersion) The version of the subscription.status
(EventSubSubscriptionStatus status) Status of the subscription.toString()
transport
(EventSubTransport transport) Object indicating the notification delivery specific information.type
(SubscriptionType<?, ?, ?> type) The category and version of the subscription.
-
Method Details
-
id
ID of the subscription.- Returns:
this
.
-
status
Status of the subscription.- Returns:
this
.
-
type
The category and version of the subscription.- Returns:
this
.
-
condition
Object specifying custom parameters for the subscription.- Returns:
this
.
-
createdAt
Timestamp indicating when the subscription was created.- Returns:
this
.
-
transport
Object indicating the notification delivery specific information.- Returns:
this
.
-
cost
How much the subscription counts against your limit. Subscriptions cost 0 if the user has authorized your application; otherwise they cost 1.- Returns:
this
.- See Also:
-
isBatchingEnabled
public EventSubSubscription.EventSubSubscriptionBuilder isBatchingEnabled(Boolean isBatchingEnabled) Whether events fired for this type are batched by Twitch.- Returns:
this
.
-
rawType
The category of the subscription.- Returns:
this
.
-
rawVersion
The version of the subscription.- Returns:
this
.
-
build
-
toString
-