Package com.github.twitch4j.events
Class ChannelChangeGameEvent
java.lang.Object
com.github.philippheuer.events4j.core.domain.Event
com.github.twitch4j.common.events.TwitchEvent
com.github.twitch4j.events.ChannelChangeGameEvent
- All Implemented Interfaces:
com.github.philippheuer.events4j.api.domain.IEvent
This event gets called when a channel changes the game
-
Constructor Summary
ConstructorDescriptionChannelChangeGameEvent
(EventChannel channel, Stream stream) Creates a newChannelChangeGameEvent
instance. -
Method Summary
Methods inherited from class com.github.philippheuer.events4j.core.domain.Event
getEventId, getFiredAt, getFiredAtInstant, getServiceMediator, setEventId, setFiredAt, setFiredAtInstant, setServiceMediator
-
Constructor Details
-
ChannelChangeGameEvent
Creates a newChannelChangeGameEvent
instance.- Parameters:
channel
- The channel that changed their gamestream
- The stream data
-
-
Method Details
-
getGameId
The new stream gameId- Returns:
- id of the game
-
getChannel
The channel that changed their game -
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
-