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
ConstructorsConstructorDescriptionAutomaticRewardRedeemedEvent(Instant timestamp, AutomaticRewardRedemption redemption) Creates a newAutomaticRewardRedeemedEventinstance. -
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 newAutomaticRewardRedeemedEventinstance.- 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:
toStringin classTwitchEvent
-
equals
- Overrides:
equalsin classTwitchEvent
-
canEqual
- Overrides:
canEqualin classTwitchEvent
-
hashCode
public int hashCode()- Overrides:
hashCodein classTwitchEvent
-