Package com.github.twitch4j.events
Class ChannelViewerCountUpdateEvent
java.lang.Object
com.github.philippheuer.events4j.core.domain.Event
com.github.twitch4j.common.events.TwitchEvent
com.github.twitch4j.events.ChannelViewerCountUpdateEvent
- All Implemented Interfaces:
com.github.philippheuer.events4j.api.domain.IEvent
public final class ChannelViewerCountUpdateEvent
extends com.github.twitch4j.common.events.TwitchEvent
-
Constructor Summary
Constructors Constructor Description ChannelViewerCountUpdateEvent(com.github.twitch4j.common.events.domain.EventChannel channel, com.github.twitch4j.helix.domain.Stream stream) -
Method Summary
Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)com.github.twitch4j.common.events.domain.EventChannelgetChannel()The channel that changed in viewer count.com.github.twitch4j.helix.domain.StreamgetStream()The stream data.java.lang.IntegergetViewerCount()inthashCode()java.lang.StringtoString()Methods inherited from class com.github.philippheuer.events4j.core.domain.Event
getEventId, getFiredAt, getFiredAtInstant, getServiceMediator, setEventId, setFiredAt, setFiredAtInstant, setServiceMediatorMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
ChannelViewerCountUpdateEvent
public ChannelViewerCountUpdateEvent(com.github.twitch4j.common.events.domain.EventChannel channel, com.github.twitch4j.helix.domain.Stream stream)
-
-
Method Details
-
getViewerCount
public java.lang.Integer getViewerCount()- Returns:
- the new viewer count.
-
getChannel
public com.github.twitch4j.common.events.domain.EventChannel getChannel()The channel that changed in viewer count. -
getStream
public com.github.twitch4j.helix.domain.Stream getStream()The stream data. -
toString
public java.lang.String toString()- Overrides:
toStringin classcom.github.twitch4j.common.events.TwitchEvent
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classcom.github.twitch4j.common.events.TwitchEvent
-
canEqual
protected boolean canEqual(java.lang.Object other)- Overrides:
canEqualin classcom.github.twitch4j.common.events.TwitchEvent
-
hashCode
public int hashCode()- Overrides:
hashCodein classcom.github.twitch4j.common.events.TwitchEvent
-