Package com.github.twitch4j.chat.events
Class ChatConnectionStateEvent
java.lang.Object
com.github.philippheuer.events4j.core.domain.Event
com.github.twitch4j.chat.events.ChatConnectionStateEvent
- All Implemented Interfaces:
com.github.philippheuer.events4j.api.domain.IEvent
Chat Connection Event
Called when a chat socket's connection status changes.
-
Constructor Summary
ConstructorsConstructorDescriptionChatConnectionStateEvent(WebsocketConnectionState previousState, WebsocketConnectionState state, TwitchChat connection) -
Method Summary
Methods inherited from class com.github.philippheuer.events4j.core.domain.Event
getEventId, getFiredAt, getFiredAtInstant, getServiceMediator, setEventId, setFiredAt, setFiredAtInstant, setServiceMediator
-
Constructor Details
-
ChatConnectionStateEvent
public ChatConnectionStateEvent(WebsocketConnectionState previousState, WebsocketConnectionState state, TwitchChat connection)
-
-
Method Details
-
getPreviousState
The previous state of the websocket. -
getState
The updated state of the websocket. -
getConnection
The chat instance whose connection status changed. -
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-