Class UserTimeoutEvent
java.lang.Object
com.github.philippheuer.events4j.core.domain.Event
com.github.twitch4j.chat.events.TwitchEvent
com.github.twitch4j.chat.events.AbstractChannelEvent
com.github.twitch4j.chat.events.channel.UserTimeoutEvent
- All Implemented Interfaces:
com.github.philippheuer.events4j.api.domain.IEvent
public final class UserTimeoutEvent extends AbstractChannelEvent
This event gets called when a user get a timeout.
-
Constructor Summary
Constructors Constructor Description UserTimeoutEvent(com.github.twitch4j.common.events.domain.EventChannel channel, com.github.twitch4j.common.events.domain.EventUser user, java.lang.Integer duration, java.lang.String reason)Event Constructor -
Method Summary
Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.IntegergetDuration()Duration in Minutesjava.lang.StringgetReason()Reason for Punishmentcom.github.twitch4j.common.events.domain.EventUsergetUser()Event Target UserinthashCode()java.lang.StringtoString()Methods inherited from class com.github.twitch4j.chat.events.AbstractChannelEvent
ban, getChannel, timeout, unbanMethods 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
-
UserTimeoutEvent
public UserTimeoutEvent(com.github.twitch4j.common.events.domain.EventChannel channel, com.github.twitch4j.common.events.domain.EventUser user, java.lang.Integer duration, java.lang.String reason)Event Constructor- Parameters:
channel- The channel that this event originates from.user- The user who triggered the event.duration- Timeout Duration in Minutes.reason- Reason for Ban.
-
-
Method Details
-
toString
public java.lang.String toString()- Overrides:
toStringin classAbstractChannelEvent
-
getUser
public com.github.twitch4j.common.events.domain.EventUser getUser()Event Target User -
getDuration
public java.lang.Integer getDuration()Duration in Minutes -
getReason
public java.lang.String getReason()Reason for Punishment -
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classAbstractChannelEvent
-
canEqual
protected boolean canEqual(java.lang.Object other)- Overrides:
canEqualin classAbstractChannelEvent
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractChannelEvent
-