Class ChannelPointsRedemptionEvent
java.lang.Object
com.github.philippheuer.events4j.core.domain.Event
com.github.twitch4j.common.events.TwitchEvent
com.github.twitch4j.pubsub.events.ChannelPointsRedemptionEvent
- All Implemented Interfaces:
com.github.philippheuer.events4j.api.domain.IEvent
- Direct Known Subclasses:
RedemptionStatusUpdateEvent
,RewardRedeemedEvent
-
Constructor Summary
ConstructorDescriptionChannelPointsRedemptionEvent
(Instant time, ChannelPointsRedemption redemption) Creates a newChannelPointsRedemptionEvent
instance. -
Method Summary
Methods inherited from class com.github.philippheuer.events4j.core.domain.Event
getEventId, getFiredAt, getFiredAtInstant, getServiceMediator, setEventId, setFiredAt, setFiredAtInstant, setServiceMediator
-
Constructor Details
-
ChannelPointsRedemptionEvent
Creates a newChannelPointsRedemptionEvent
instance.- Parameters:
time
- The time the pubsub message was sentredemption
- Data about the redemption, includes unique id and user that redeemed it
-
-
Method Details
-
getTimestamp
Deprecated.in favor of getTime()- Returns:
- the timestamp for this event, in the system default zone
-
getTime
The time the pubsub message was sent -
getRedemption
Data about the redemption, includes unique id and user that redeemed it -
toString
- Overrides:
toString
in classTwitchEvent
-
equals
- Overrides:
equals
in classTwitchEvent
-
canEqual
- Overrides:
canEqual
in classTwitchEvent
-
hashCode
public int hashCode()- Overrides:
hashCode
in classTwitchEvent
-