Class GlobalUserStateEvent
java.lang.Object
com.github.philippheuer.events4j.core.domain.Event
com.github.twitch4j.chat.events.TwitchEvent
com.github.twitch4j.chat.events.channel.GlobalUserStateEvent
- All Implemented Interfaces:
com.github.philippheuer.events4j.api.domain.IEvent
-
Constructor Summary
ConstructorDescriptionGlobalUserStateEvent
(IRCMessageEvent messageEvent) Creates a newGlobalUserStateEvent
instance. -
Method Summary
Methods inherited from class com.github.twitch4j.chat.events.TwitchEvent
getTwitchChat
Methods inherited from class com.github.philippheuer.events4j.core.domain.Event
getEventId, getFiredAt, getFiredAtInstant, getServiceMediator, setEventId, setFiredAt, setFiredAtInstant, setServiceMediator
-
Constructor Details
-
GlobalUserStateEvent
Creates a newGlobalUserStateEvent
instance.- Parameters:
messageEvent
- Raw Message Event
-
-
Method Details
-
getDisplayName
- Returns:
- the user's display name, or empty if it is never set.
-
getUserId
- Returns:
- the user's id, or empty if it is never set.
-
getColor
- Returns:
- hexadecimal RGB color code, or empty if it is never set.
-
getEmoteSets
- Returns:
- collection of emote sets.
-
isStaff
public boolean isStaff()- Returns:
- whether the user is a staff member.
-
isPrimeOrTurbo
public boolean isPrimeOrTurbo()- Returns:
- whether the user has a prime or turbo badge.
-
getMessageEvent
Raw Message Event -
toString
- Overrides:
toString
in classTwitchEvent
-
equals
- Overrides:
equals
in classTwitchEvent
-
canEqual
- Overrides:
canEqual
in classTwitchEvent
-
hashCode
public int hashCode()- Overrides:
hashCode
in classTwitchEvent
-