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
public class ChannelPointsRedemptionEvent
extends com.github.twitch4j.common.events.TwitchEvent
-
Constructor Summary
Constructors Constructor Description ChannelPointsRedemptionEvent(java.time.Instant time, ChannelPointsRedemption redemption) -
Method Summary
Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)ChannelPointsRedemptiongetRedemption()Data about the redemption, includes unique id and user that redeemed itjava.time.InstantgetTime()The time the pubsub message was sentjava.util.CalendargetTimestamp()Deprecated.in favor of getTime()inthashCode()java.lang.StringtoString()Methods 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
-
ChannelPointsRedemptionEvent
-
-
Method Details
-
getTimestamp
@Deprecated public java.util.Calendar getTimestamp()Deprecated.in favor of getTime()- Returns:
- the timestamp for this event, in the system default zone
-
getTime
public java.time.Instant getTime()The time the pubsub message was sent -
getRedemption
Data about the redemption, includes unique id and user that redeemed it -
toString
public java.lang.String toString()- Overrides:
toStringin classcom.github.twitch4j.common.events.TwitchEvent
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classcom.github.twitch4j.common.events.TwitchEvent
-
canEqual
protected boolean canEqual(java.lang.Object other)- Overrides:
canEqualin classcom.github.twitch4j.common.events.TwitchEvent
-
hashCode
public int hashCode()- Overrides:
hashCodein classcom.github.twitch4j.common.events.TwitchEvent
-