Package com.github.twitch4j.helix.domain
Class HypeTrainEvent.EventData
java.lang.Object
com.github.twitch4j.helix.domain.HypeTrainEvent.EventData
- Enclosing class:
- HypeTrainEvent
public static class HypeTrainEvent.EventData
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description EventData() -
Method Summary
Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)@NonNull java.lang.StringgetBroadcasterId()Channel ID of which Hype Train events the clients are interested injava.time.InstantgetCooldownEndTime()Timestamp of when another Hype Train can be started againjava.time.InstantgetExpiresAt()Timestamp of the expiration time of this Hype Trainjava.lang.LonggetGoal()The goal value of the level above@NonNull java.lang.StringgetId()The distinct ID of this Hype TrainHypeTrainEvent.ContributiongetLastContribution()An object that represents the most recent contributionjava.lang.IntegergetLevel()The highest level (in the scale of 1-5) reached of the Hype Trainjava.time.InstantgetStartedAt()Timestamp of when this Hype Train startedjava.util.List<HypeTrainEvent.Contribution>getTopContributions()Top contribution objects, one object for each typejava.lang.LonggetTotal()The total score so far towards completing the level goal aboveinthashCode()java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
EventData
public EventData()
-
-
Method Details
-
getBroadcasterId
@NonNull public @NonNull java.lang.String getBroadcasterId()Channel ID of which Hype Train events the clients are interested in -
getCooldownEndTime
public java.time.Instant getCooldownEndTime()Timestamp of when another Hype Train can be started again -
getExpiresAt
public java.time.Instant getExpiresAt()Timestamp of the expiration time of this Hype Train -
getGoal
public java.lang.Long getGoal()The goal value of the level above -
getTotal
public java.lang.Long getTotal()The total score so far towards completing the level goal above -
getId
@NonNull public @NonNull java.lang.String getId()The distinct ID of this Hype Train -
getLastContribution
An object that represents the most recent contribution -
getLevel
public java.lang.Integer getLevel()The highest level (in the scale of 1-5) reached of the Hype Train -
getStartedAt
public java.time.Instant getStartedAt()Timestamp of when this Hype Train started -
getTopContributions
Top contribution objects, one object for each typeFor example, one object would represent top contributor of BITS, by aggregate, and one would represent top contributor of SUBS by count
-
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
-