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 boolean canEqual​(java.lang.Object other)  
    boolean equals​(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()  
    IRCMessageEvent getMessageEvent()
    Raw Message Event
    java.util.Optional<java.lang.String> getUserId()  
    int hashCode()  
    boolean isPrimeOrTurbo()  
    boolean isStaff()  
    java.lang.String toString()  

    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

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • GlobalUserStateEvent

      public GlobalUserStateEvent​(IRCMessageEvent messageEvent)
  • 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

      public IRCMessageEvent getMessageEvent()
      Raw Message Event
    • toString

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

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class TwitchEvent
    • canEqual

      protected boolean canEqual​(java.lang.Object other)
      Overrides:
      canEqual in class TwitchEvent
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class TwitchEvent