Class RaidEvent
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.RaidEvent
- All Implemented Interfaces:
com.github.philippheuer.events4j.api.domain.IEvent
public final class RaidEvent extends AbstractChannelEvent
This event gets called when a user receives a raid.
This event is not called when a user receives a host that is not part of a raid.
-
Constructor Summary
Constructors Constructor Description RaidEvent(com.github.twitch4j.common.events.domain.EventChannel channel, com.github.twitch4j.common.events.domain.EventUser raider, java.lang.Integer viewers) -
Method Summary
Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)com.github.twitch4j.common.events.domain.EventUsergetRaider()Event User who initiated the raidjava.lang.IntegergetViewers()Number of viewers in the raidinthashCode()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
-
RaidEvent
public RaidEvent(com.github.twitch4j.common.events.domain.EventChannel channel, com.github.twitch4j.common.events.domain.EventUser raider, java.lang.Integer viewers)- Parameters:
channel- ChatChannel receiving the raidraider- User who is sending the raidviewers- number of viewers from the raid
-
-
Method Details
-
toString
public java.lang.String toString()- Overrides:
toStringin classAbstractChannelEvent
-
getRaider
public com.github.twitch4j.common.events.domain.EventUser getRaider()Event User who initiated the raid -
getViewers
public java.lang.Integer getViewers()Number of viewers in the raid -
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
-