Class FollowersOnlyEvent

java.lang.Object
com.github.philippheuer.events4j.core.domain.Event
All Implemented Interfaces:
com.github.philippheuer.events4j.api.domain.IEvent

public final class FollowersOnlyEvent
extends ChannelStatesEvent
Followers Only State Event
  • Constructor Summary

    Constructors
    Constructor Description
    FollowersOnlyEvent​(com.github.twitch4j.common.events.domain.EventChannel channel, long time)  
    FollowersOnlyEvent​(com.github.twitch4j.common.events.domain.EventChannel channel, long time, java.util.concurrent.TimeUnit timeUnit)  
  • Method Summary

    Modifier and Type Method Description
    protected boolean canEqual​(java.lang.Object other)  
    boolean equals​(java.lang.Object o)  
    long getTime()
    Time in seconds
    long getTime​(java.util.concurrent.TimeUnit timeUnit)  
    int hashCode()  
    java.lang.String toString()  

    Methods inherited from class com.github.twitch4j.chat.events.roomstate.ChannelStatesEvent

    isActive

    Methods inherited from class com.github.twitch4j.chat.events.AbstractChannelEvent

    ban, getChannel, timeout, unban

    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

    • FollowersOnlyEvent

      public FollowersOnlyEvent​(com.github.twitch4j.common.events.domain.EventChannel channel, long time, java.util.concurrent.TimeUnit timeUnit)
    • FollowersOnlyEvent

      public FollowersOnlyEvent​(com.github.twitch4j.common.events.domain.EventChannel channel, long time)
  • Method Details

    • getTime

      public long getTime​(java.util.concurrent.TimeUnit timeUnit)
    • getTime

      public long getTime()
      Time in seconds
    • equals

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

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

      public int hashCode()
      Overrides:
      hashCode in class ChannelStatesEvent
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class ChannelStatesEvent