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
public final class GlobalUserStateEvent extends TwitchEvent
-
Constructor Summary
Constructors Constructor Description GlobalUserStateEvent(IRCMessageEvent messageEvent) -
Method Summary
Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.util.Optional<java.lang.String>getColor()java.util.Optional<java.lang.String>getDisplayName()java.util.List<java.lang.String>getEmoteSets()IRCMessageEventgetMessageEvent()Raw Message Eventjava.util.Optional<java.lang.String>getUserId()inthashCode()booleanisPrimeOrTurbo()booleanisStaff()java.lang.StringtoString()Methods inherited from class com.github.twitch4j.chat.events.TwitchEvent
getTwitchChatMethods inherited from class com.github.philippheuer.events4j.core.domain.Event
getEventId, getFiredAt, getFiredAtInstant, getServiceMediator, setEventId, setFiredAt, setFiredAtInstant, setServiceMediatorMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
GlobalUserStateEvent
-
-
Method Details
-
getDisplayName
public java.util.Optional<java.lang.String> getDisplayName()- Returns:
- the user's display name, or empty if it is never set.
-
getUserId
public java.util.Optional<java.lang.String> getUserId()- Returns:
- the user's id, or empty if it is never set.
-
getColor
public java.util.Optional<java.lang.String> getColor()- Returns:
- hexadecimal RGB color code, or empty if it is never set.
-
getEmoteSets
public java.util.List<java.lang.String> 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
public java.lang.String toString()- Overrides:
toStringin classTwitchEvent
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classTwitchEvent
-
canEqual
protected boolean canEqual(java.lang.Object other)- Overrides:
canEqualin classTwitchEvent
-
hashCode
public int hashCode()- Overrides:
hashCodein classTwitchEvent
-