Class RitualEvent
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.RitualEvent
- All Implemented Interfaces:
com.github.philippheuer.events4j.api.domain.IEvent
public final class RitualEvent extends AbstractChannelEvent
Called when a ritual takes place in chat.
Many channels have special rituals to celebrate viewer milestones when they are shared. The rituals notice extends the sharing of these messages to other viewer milestones (initially, a new viewer chatting for the first time).
-
Constructor Summary
Constructors Constructor Description RitualEvent(com.github.twitch4j.common.events.domain.EventChannel channel, com.github.twitch4j.common.events.domain.EventUser user, java.lang.String ritualName)Event Constructor -
Method Summary
Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.StringgetRitualName()The name of the ritual this notice is for.com.github.twitch4j.common.events.domain.EventUsergetUser()The user involved in the ritual.inthashCode()booleanisNewChatter()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
-
RitualEvent
public RitualEvent(com.github.twitch4j.common.events.domain.EventChannel channel, com.github.twitch4j.common.events.domain.EventUser user, java.lang.String ritualName)Event Constructor- Parameters:
channel- The channel that this event originates from.user- The user involved in the ritual.ritualName- The name of the ritual this notice is for.
-
-
Method Details
-
isNewChatter
public boolean isNewChatter()- Returns:
- whether the ritual corresponds to a new viewer chatting for the first time
-
getUser
public com.github.twitch4j.common.events.domain.EventUser getUser()The user involved in the ritual. -
getRitualName
public java.lang.String getRitualName()The name of the ritual this notice is for. -
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
-
toString
public java.lang.String toString()- Overrides:
toStringin classAbstractChannelEvent
-