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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Custom background color for the reward.Timestamp of the cooldown expiration.getCost()
The reward cost.Set of default images of 1x, 2x and 4x sizes for the reward.Whether a cooldown is enabled and what the cooldown is in seconds.getId()
The reward identifier.getImage()
Set of custom images of 1x, 2x and 4x sizes for the reward.Whether a maximum per stream is enabled and what the maximum is.Whether a maximum per user per stream is enabled and what the maximum is.The reward description.The number of redemptions redeemed during the current live stream.Whether redemptions should be set to fulfilled status immediately when redeemed and skip the request queue instead of the normal unfulfilled status.getTitle()
The reward title.int
hashCode()
Whether the reward is currently enabled.Whether the reward is currently in stock.isPaused()
Whether the reward is currently paused.Whether the viewer needs to enter information when redeeming the reward.toString()
Methods inherited from class com.github.twitch4j.eventsub.events.EventSubChannelEvent
getBroadcasterUserId, getBroadcasterUserLogin, getBroadcasterUserName
-
Constructor Details
-
ChannelPointsCustomRewardEvent
public ChannelPointsCustomRewardEvent()
-
-
Method Details
-
getId
The reward identifier. -
isEnabled
Whether the reward is currently enabled. If false, the reward won’t show up to viewers. -
isPaused
Whether the reward is currently paused. If true, viewers can’t redeem. -
isInStock
Whether the reward is currently in stock. If false, viewers can’t redeem. -
getTitle
The reward title. -
getCost
The reward cost. -
getPrompt
The reward description. -
isUserInputRequired
Whether the viewer needs to enter information when redeeming the reward. -
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
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
Timestamp of the cooldown expiration. null if the reward isn’t on cooldown. -
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
- Overrides:
toString
in classEventSubChannelEvent
-
equals
- Overrides:
equals
in classEventSubChannelEvent
-
canEqual
- Overrides:
canEqual
in classEventSubChannelEvent
-
hashCode
public int hashCode()- Overrides:
hashCode
in classEventSubChannelEvent
-