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
public class ChatConnectionStateEvent
extends com.github.philippheuer.events4j.core.domain.Event
Chat Connection Event
Called when a chat socket's connection status changes.
-
Constructor Summary
ConstructorDescriptionChatConnectionStateEvent
(WebsocketConnectionState previousState, WebsocketConnectionState state, TwitchChat connection) Creates a newChatConnectionStateEvent
instance. -
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) Creates a newChatConnectionStateEvent
instance.- Parameters:
previousState
- The previous state of the websocket.state
- The updated state of the websocket.connection
- The chat instance whose connection status changed.
-
-
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
- Overrides:
toString
in classcom.github.philippheuer.events4j.core.domain.Event
-
equals
- Overrides:
equals
in classcom.github.philippheuer.events4j.core.domain.Event
-
canEqual
- Overrides:
canEqual
in classcom.github.philippheuer.events4j.core.domain.Event
-
hashCode
public int hashCode()- Overrides:
hashCode
in classcom.github.philippheuer.events4j.core.domain.Event
-