Package com.github.twitch4j.helix.domain
Class SubscriptionEvent
java.lang.Object
com.github.twitch4j.helix.domain.SubscriptionEvent
public class SubscriptionEvent
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSubscriptionEvent.TypeThe type of event in the event_data payload. -
Constructor Summary
Constructors Constructor Description SubscriptionEvent() -
Method Summary
Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)SubscriptiongetEventData()Event payload.java.time.InstantgetEventTimestamp()RFC3339 formatted timestamp for when the event occurred.SubscriptionEvent.TypegetEventType()The type of event in the event_data payload.java.lang.StringgetId()ID of the event.java.lang.StringgetVersion()Event version.inthashCode()java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
SubscriptionEvent
public SubscriptionEvent()
-
-
Method Details
-
getId
public java.lang.String getId()ID of the event. -
getEventType
The type of event in the event_data payload. -
getEventTimestamp
public java.time.Instant getEventTimestamp()RFC3339 formatted timestamp for when the event occurred. -
getVersion
public java.lang.String getVersion()Event version. -
getEventData
Event payload. -
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
-