Package com.github.twitch4j.eventsub
Class EventSubSubscription
java.lang.Object
com.github.twitch4j.eventsub.EventSubSubscription
public class EventSubSubscription
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEventSubSubscription.EventSubSubscriptionBuilder -
Constructor Summary
Constructors Constructor Description EventSubSubscription()EventSubSubscription(java.lang.String id, EventSubSubscriptionStatus status, SubscriptionType<?,?,?> type, EventSubCondition condition, java.time.Instant createdAt, EventSubTransport transport, java.lang.Integer cost, java.lang.String rawType, java.lang.String rawVersion)EventSubSubscription(java.lang.String id, EventSubSubscriptionStatus status, java.lang.String type, java.lang.String version, java.util.Map<java.lang.String,java.lang.Object> condition, java.time.Instant createdAt, EventSubTransport transport, java.lang.Integer cost) -
Method Summary
Modifier and Type Method Description static EventSubSubscription.EventSubSubscriptionBuilderbuilder()protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)EventSubConditiongetCondition()Object specifying custom parameters for the subscription.java.lang.IntegergetCost()How much the subscription counts against your limit.java.time.InstantgetCreatedAt()Timestamp indicating when the subscription was created.java.lang.StringgetId()ID of the subscription.java.lang.StringgetRawType()The category of the subscription.java.lang.StringgetRawVersion()The version of the subscription.EventSubSubscriptionStatusgetStatus()Status of the subscription.EventSubTransportgetTransport()Object indicating the notification delivery specific information.SubscriptionType<?,?,?>getType()The category and version of the subscription.inthashCode()java.lang.StringtoString()EventSubSubscriptionwithTransport(EventSubTransport transport)Object indicating the notification delivery specific information.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
EventSubSubscription
public EventSubSubscription(java.lang.String id, EventSubSubscriptionStatus status, java.lang.String type, java.lang.String version, java.util.Map<java.lang.String,java.lang.Object> condition, java.time.Instant createdAt, EventSubTransport transport, java.lang.Integer cost) -
EventSubSubscription
public EventSubSubscription() -
EventSubSubscription
public EventSubSubscription(java.lang.String id, EventSubSubscriptionStatus status, SubscriptionType<?,?,?> type, EventSubCondition condition, java.time.Instant createdAt, EventSubTransport transport, java.lang.Integer cost, java.lang.String rawType, java.lang.String rawVersion)
-
-
Method Details
-
builder
-
getId
public java.lang.String getId()ID of the subscription. -
getStatus
Status of the subscription. -
getCondition
Object specifying custom parameters for the subscription. -
getCreatedAt
public java.time.Instant getCreatedAt()Timestamp indicating when the subscription was created. -
getTransport
Object indicating the notification delivery specific information. -
getCost
public java.lang.Integer 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:
- Limit Docs
-
getRawType
public java.lang.String getRawType()The category of the subscription. -
getRawVersion
public java.lang.String getRawVersion()The version of the subscription. -
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other) -
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
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
thisif an identical value is passed).
-