Class BitsBadgeEarnedEvent
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.BitsBadgeEarnedEvent
- All Implemented Interfaces:
com.github.philippheuer.events4j.api.domain.IEvent
Called when a user earns a new bits badge tier.
-
Constructor Summary
ConstructorDescriptionBitsBadgeEarnedEvent
(EventChannel channel, EventUser user, int bitsThreshold) Event Constructor -
Method Summary
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
-
Constructor Details
-
BitsBadgeEarnedEvent
Event Constructor- Parameters:
channel
- The channel that this event originates from.user
- The user that earned the bits badge.bitsThreshold
- The tier of the bits badge the user just earned.
-
-
Method Details
-
getUser
The user that earned the bits badge. -
getBitsThreshold
public int getBitsThreshold()The tier of the bits badge the user just earned; e.g. 100, 1000, 10000. -
equals
- Overrides:
equals
in classAbstractChannelEvent
-
canEqual
- Overrides:
canEqual
in classAbstractChannelEvent
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractChannelEvent
-
toString
- Overrides:
toString
in classAbstractChannelEvent
-