Class ChannelBanEvent
java.lang.Object
com.github.twitch4j.eventsub.events.EventSubEvent
com.github.twitch4j.eventsub.events.EventSubUserChannelEvent
com.github.twitch4j.eventsub.events.EventSubModerationEvent
com.github.twitch4j.eventsub.events.ChannelBanEvent
public class ChannelBanEvent extends EventSubModerationEvent
-
Constructor Summary
Constructors Constructor Description ChannelBanEvent() -
Method Summary
Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)@Nullable java.time.InstantgetEndsAt()Will be null if permanent ban.java.lang.StringgetReason()The reason behind the ban.inthashCode()java.lang.BooleanisPermanent()Indicates whether the ban is permanent (true) or a timeout (false).java.lang.StringtoString()Methods inherited from class com.github.twitch4j.eventsub.events.EventSubModerationEvent
getModeratorUserId, getModeratorUserLogin, getModeratorUserNameMethods inherited from class com.github.twitch4j.eventsub.events.EventSubUserChannelEvent
getBroadcasterUserId, getBroadcasterUserLogin, getBroadcasterUserName, getUserId, getUserLogin, getUserNameMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
ChannelBanEvent
public ChannelBanEvent()
-
-
Method Details
-
getReason
public java.lang.String getReason()The reason behind the ban. -
getEndsAt
@Nullable public @Nullable java.time.Instant getEndsAt()Will be null if permanent ban. If it is a timeout, this field shows when the timeout will end. -
isPermanent
public java.lang.Boolean isPermanent()Indicates whether the ban is permanent (true) or a timeout (false). If true,getEndsAt()will be null. -
toString
public java.lang.String toString()- Overrides:
toStringin classEventSubModerationEvent
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classEventSubModerationEvent
-
canEqual
protected boolean canEqual(java.lang.Object other)- Overrides:
canEqualin classEventSubModerationEvent
-
hashCode
public int hashCode()- Overrides:
hashCodein classEventSubModerationEvent
-