Class ChannelPointsCustomRewardEvent
java.lang.Object
com.github.twitch4j.eventsub.events.EventSubEvent
com.github.twitch4j.eventsub.events.EventSubChannelEvent
com.github.twitch4j.eventsub.events.ChannelPointsCustomRewardEvent
- Direct Known Subclasses:
CustomRewardAddEvent,CustomRewardRemoveEvent,CustomRewardUpdateEvent
public abstract class ChannelPointsCustomRewardEvent extends EventSubChannelEvent
-
Constructor Summary
Constructors Constructor Description ChannelPointsCustomRewardEvent() -
Method Summary
Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.StringgetBackgroundColor()Custom background color for the reward.java.time.InstantgetCooldownExpiresAt()Timestamp of the cooldown expiration. null if the reward isn’t on cooldown.java.lang.IntegergetCost()The reward cost.Reward.ImagegetDefaultImage()Set of default images of 1x, 2x and 4x sizes for the reward.GlobalCooldowngetGlobalCooldown()Whether a cooldown is enabled and what the cooldown is in seconds.java.lang.StringgetId()The reward identifier.Reward.ImagegetImage()Set of custom images of 1x, 2x and 4x sizes for the reward.MaxPerStreamgetMaxPerStream()Whether a maximum per stream is enabled and what the maximum is.MaxPerUserPerStreamgetMaxPerUserPerStream()Whether a maximum per user per stream is enabled and what the maximum is.java.lang.StringgetPrompt()The reward description.java.lang.IntegergetRedemptionsRedeemedCurrentStream()The number of redemptions redeemed during the current live stream.java.lang.BooleangetShouldRedemptionsSkipRequestQueue()Whether redemptions should be set to fulfilled status immediately when redeemed and skip the request queue instead of the normal unfulfilled status.java.lang.StringgetTitle()The reward title.inthashCode()java.lang.BooleanisEnabled()Whether the reward is currently enabled.java.lang.BooleanisInStock()Whether the reward is currently in stock.java.lang.BooleanisPaused()Whether the reward is currently paused.java.lang.BooleanisUserInputRequired()Whether the viewer needs to enter information when redeeming the reward.java.lang.StringtoString()Methods inherited from class com.github.twitch4j.eventsub.events.EventSubChannelEvent
getBroadcasterUserId, getBroadcasterUserLogin, getBroadcasterUserNameMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
ChannelPointsCustomRewardEvent
public ChannelPointsCustomRewardEvent()
-
-
Method Details
-
getId
public java.lang.String getId()The reward identifier. -
isEnabled
public java.lang.Boolean isEnabled()Whether the reward is currently enabled. If false, the reward won’t show up to viewers. -
isPaused
public java.lang.Boolean isPaused()Whether the reward is currently paused. If true, viewers can’t redeem. -
isInStock
public java.lang.Boolean isInStock()Whether the reward is currently in stock. If false, viewers can’t redeem. -
getTitle
public java.lang.String getTitle()The reward title. -
getCost
public java.lang.Integer getCost()The reward cost. -
getPrompt
public java.lang.String getPrompt()The reward description. -
isUserInputRequired
public java.lang.Boolean isUserInputRequired()Whether the viewer needs to enter information when redeeming the reward. -
getShouldRedemptionsSkipRequestQueue
public java.lang.Boolean getShouldRedemptionsSkipRequestQueue()Whether redemptions should be set to fulfilled status immediately when redeemed and skip the request queue instead of the normal unfulfilled status. -
getMaxPerStream
Whether a maximum per stream is enabled and what the maximum is. -
getMaxPerUserPerStream
Whether a maximum per user per stream is enabled and what the maximum is. -
getBackgroundColor
public java.lang.String getBackgroundColor()Custom background color for the reward. -
getImage
Set of custom images of 1x, 2x and 4x sizes for the reward. Can be null if no images have been uploaded. -
getDefaultImage
Set of default images of 1x, 2x and 4x sizes for the reward. -
getGlobalCooldown
Whether a cooldown is enabled and what the cooldown is in seconds. -
getCooldownExpiresAt
public java.time.Instant getCooldownExpiresAt()Timestamp of the cooldown expiration. null if the reward isn’t on cooldown. -
getRedemptionsRedeemedCurrentStream
public java.lang.Integer getRedemptionsRedeemedCurrentStream()The number of redemptions redeemed during the current live stream. Counts against the max_per_stream limit. null if the broadcasters stream isn’t live or max_per_stream isn’t enabled. -
toString
public java.lang.String toString()- Overrides:
toStringin classEventSubChannelEvent
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classEventSubChannelEvent
-
canEqual
protected boolean canEqual(java.lang.Object other)- Overrides:
canEqualin classEventSubChannelEvent
-
hashCode
public int hashCode()- Overrides:
hashCodein classEventSubChannelEvent
-