Package com.github.twitch4j.eventsub
Class EventSubSubscription
java.lang.Object
com.github.twitch4j.eventsub.EventSubSubscription
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionEventSubSubscription
(String id, EventSubSubscriptionStatus status, SubscriptionType<?, ?, ?> type, EventSubCondition condition, Instant createdAt, EventSubTransport transport, Integer cost, Boolean isBatchingEnabled, String rawType, String rawVersion) Creates a newEventSubSubscription
instance.EventSubSubscription
(String id, EventSubSubscriptionStatus status, String type, String version, Map<String, Object> condition, Instant createdAt, EventSubTransport transport, Integer cost, Boolean isBatchingEnabled) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
protected boolean
boolean
Object specifying custom parameters for the subscription.getCost()
How much the subscription counts against your limit.Timestamp indicating when the subscription was created.getId()
ID of the subscription.The category of the subscription.The version of the subscription.Status of the subscription.Object indicating the notification delivery specific information.SubscriptionType<?,
?, ?> getType()
The category and version of the subscription.int
hashCode()
Whether events fired for this type are batched by Twitch.void
setStatus
(EventSubSubscriptionStatus status) Deprecated.void
setTransport
(EventSubTransport transport) Deprecated.toString()
withTransport
(EventSubTransport transport) Object indicating the notification delivery specific information.
-
Constructor Details
-
EventSubSubscription
-
EventSubSubscription
public EventSubSubscription() -
EventSubSubscription
public EventSubSubscription(String id, EventSubSubscriptionStatus status, SubscriptionType<?, ?, ?> type, EventSubCondition condition, Instant createdAt, EventSubTransport transport, Integer cost, Boolean isBatchingEnabled, String rawType, String rawVersion) Creates a newEventSubSubscription
instance.- Parameters:
id
- ID of the subscription.status
- Status of the subscription.type
- The category and version of the subscription.condition
- Object specifying custom parameters for the subscription.createdAt
- Timestamp indicating when the subscription was created.transport
- Object indicating the notification delivery specific information.cost
- How much the subscription counts against your limit. Subscriptions cost 0 if the user has authorized your application; otherwise they cost 1.isBatchingEnabled
- Whether events fired for this type are batched by Twitch.rawType
- The category of the subscription.rawVersion
- The version of the subscription.- See Also:
-
-
Method Details
-
builder
-
toBuilder
-
getId
ID of the subscription. -
getStatus
Status of the subscription. -
getCondition
Object specifying custom parameters for the subscription. -
getCreatedAt
Timestamp indicating when the subscription was created. -
getTransport
Object indicating the notification delivery specific information. -
getCost
How much the subscription counts against your limit. Subscriptions cost 0 if the user has authorized your application; otherwise they cost 1.- See Also:
-
isBatchingEnabled
Whether events fired for this type are batched by Twitch. -
getRawType
The category of the subscription. -
getRawVersion
The version of the subscription. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
setStatus
Deprecated.Status of the subscription. -
getType
The category and version of the subscription. -
withTransport
Object indicating the notification delivery specific information.- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
setTransport
Deprecated.Object indicating the notification delivery specific information.
-