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
-
Constructor Summary
ConstructorDescriptionChannelViewerCountUpdateEvent
(EventChannel channel, Stream stream) Creates a newChannelViewerCountUpdateEvent
instance. -
Method Summary
Methods inherited from class com.github.philippheuer.events4j.core.domain.Event
getEventId, getFiredAt, getFiredAtInstant, getServiceMediator, setEventId, setFiredAt, setFiredAtInstant, setServiceMediator
-
Constructor Details
-
ChannelViewerCountUpdateEvent
Creates a newChannelViewerCountUpdateEvent
instance.- Parameters:
channel
- The channel that changed in viewer count.stream
- The stream data.
-
-
Method Details
-
getViewerCount
- Returns:
- the new viewer count.
-
getChannel
The channel that changed in viewer count. -
getStream
The stream data. -
toString
- Overrides:
toString
in classTwitchEvent
-
equals
- Overrides:
equals
in classTwitchEvent
-
canEqual
- Overrides:
canEqual
in classTwitchEvent
-
hashCode
public int hashCode()- Overrides:
hashCode
in classTwitchEvent
-