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 Details

    • GlobalUserStateEvent

      public GlobalUserStateEvent(IRCMessageEvent messageEvent)
  • Method Details

    • getDisplayName

      public Optional<String> getDisplayName()
      Returns:
      the user's display name, or empty if it is never set.
    • getUserId

      public Optional<String> getUserId()
      Returns:
      the user's id, or empty if it is never set.
    • getColor

      public Optional<String> getColor()
      Returns:
      hexadecimal RGB color code, or empty if it is never set.
    • getEmoteSets

      public List<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

      public IRCMessageEvent getMessageEvent()
      Raw Message Event
    • toString

      public String toString()
      Overrides:
      toString in class TwitchEvent
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class TwitchEvent
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class TwitchEvent
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class TwitchEvent