Class AutomaticRewardRedeemedEvent
java.lang.Object
com.github.philippheuer.events4j.core.domain.Event
com.github.twitch4j.common.events.TwitchEvent
com.github.twitch4j.pubsub.events.AutomaticRewardRedeemedEvent
- All Implemented Interfaces:
com.github.philippheuer.events4j.api.domain.IEvent
Fired when certain automatic rewards are redeemed.
In particular, celebrations, message effects, and gigantified emotes (i.e., new bits power-ups) trigger this event.
This event is not fired for message highlights or subs-only bypass messages or emote unlocks.
-
Constructor Summary
ConstructorDescriptionAutomaticRewardRedeemedEvent
(Instant timestamp, AutomaticRewardRedemption redemption) Creates a newAutomaticRewardRedeemedEvent
instance. -
Method Summary
Methods inherited from class com.github.philippheuer.events4j.core.domain.Event
getEventId, getFiredAt, getFiredAtInstant, getServiceMediator, setEventId, setFiredAt, setFiredAtInstant, setServiceMediator
-
Constructor Details
-
AutomaticRewardRedeemedEvent
Creates a newAutomaticRewardRedeemedEvent
instance.- Parameters:
timestamp
- The time when the reward was redeemed.redemption
- Data about the redemption.
-
-
Method Details
-
getTimestamp
The time when the reward was redeemed. -
getRedemption
Data about the redemption. -
toString
- Overrides:
toString
in classTwitchEvent
-
equals
- Overrides:
equals
in classTwitchEvent
-
canEqual
- Overrides:
canEqual
in classTwitchEvent
-
hashCode
public int hashCode()- Overrides:
hashCode
in classTwitchEvent
-