Class HypeTrainBeginEvent
java.lang.Object
com.github.twitch4j.eventsub.events.EventSubEvent
com.github.twitch4j.eventsub.events.EventSubChannelEvent
com.github.twitch4j.eventsub.events.HypeTrainEvent
com.github.twitch4j.eventsub.events.HypeTrainBeginEvent
public class HypeTrainBeginEvent extends HypeTrainEvent
-
Constructor Summary
Constructors Constructor Description HypeTrainBeginEvent() -
Method Summary
Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.time.InstantgetExpiresAt()The time at which the hype train expires.java.lang.IntegergetGoal()The number of points required to reach the next level.ContributiongetLastContribution()The most recent contribution.java.lang.IntegergetProgress()The number of points contributed to the hype train at the current level.inthashCode()java.lang.StringtoString()Methods inherited from class com.github.twitch4j.eventsub.events.HypeTrainEvent
getStartedAt, getTopContributions, getTotalMethods 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
-
HypeTrainBeginEvent
public HypeTrainBeginEvent()
-
-
Method Details
-
getProgress
public java.lang.Integer getProgress()The number of points contributed to the hype train at the current level. -
getGoal
public java.lang.Integer getGoal()The number of points required to reach the next level. -
getLastContribution
The most recent contribution. -
getExpiresAt
public java.time.Instant getExpiresAt()The time at which the hype train expires. The expiration is extended when the hype train reaches a new level. -
toString
public java.lang.String toString()- Overrides:
toStringin classHypeTrainEvent
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classHypeTrainEvent
-
canEqual
protected boolean canEqual(java.lang.Object other)- Overrides:
canEqualin classHypeTrainEvent
-
hashCode
public int hashCode()- Overrides:
hashCodein classHypeTrainEvent
-