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
ConstructorsConstructorDescriptionChannelChangeGameEvent(EventChannel channel, Stream stream) Creates a newChannelChangeGameEventinstance. -
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 newChannelChangeGameEventinstance.- 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:
toStringin classTwitchEvent
-
equals
- Overrides:
equalsin classTwitchEvent
-
canEqual
- Overrides:
canEqualin classTwitchEvent
-
hashCode
public int hashCode()- Overrides:
hashCodein classTwitchEvent
-