Class HypeTrainEvent
java.lang.Object
com.github.twitch4j.eventsub.events.EventSubEvent
com.github.twitch4j.eventsub.events.EventSubChannelEvent
com.github.twitch4j.eventsub.events.HypeTrainEvent
- Direct Known Subclasses:
HypeTrainBeginEvent,HypeTrainEndEvent,HypeTrainProgressEvent
public abstract class HypeTrainEvent extends EventSubChannelEvent
-
Constructor Summary
Constructors Constructor Description HypeTrainEvent() -
Method Summary
Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.time.InstantgetStartedAt()The timestamp at which the hype train started.java.util.List<Contribution>getTopContributions()The contributors with the most points contributed.java.lang.IntegergetTotal()Total points contributed to hype train.inthashCode()java.lang.StringtoString()Methods inherited from class com.github.twitch4j.eventsub.events.EventSubChannelEvent
getBroadcasterUserId, getBroadcasterUserLogin, getBroadcasterUserNameMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
HypeTrainEvent
public HypeTrainEvent()
-
-
Method Details
-
getTotal
public java.lang.Integer getTotal()Total points contributed to hype train. -
getTopContributions
The contributors with the most points contributed. -
getStartedAt
public java.time.Instant getStartedAt()The timestamp at which the hype train started. -
toString
public java.lang.String toString()- Overrides:
toStringin classEventSubChannelEvent
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classEventSubChannelEvent
-
canEqual
protected boolean canEqual(java.lang.Object other)- Overrides:
canEqualin classEventSubChannelEvent
-
hashCode
public int hashCode()- Overrides:
hashCodein classEventSubChannelEvent
-