Package com.github.twitch4j.helix.domain
Klasse CustomReward.CustomRewardBuilder
java.lang.Object
com.github.twitch4j.helix.domain.CustomReward.CustomRewardBuilder
- Umschließende Klasse:
CustomReward
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbackgroundColor(String backgroundColor) Custom background color for the reward.broadcasterId(String broadcasterId) ID of the channel the reward is for.broadcasterLogin(String broadcasterLogin) Login of the channel the reward is for.broadcasterName(String broadcasterName) Display name of the channel the reward is for.build()cooldownExpiresAt(@Nullable Instant cooldownExpiresAt) Timestamp of the cooldown expiration.The cost of the reward.defaultImage(Reward.Image defaultImage) Set of default images of 1x, 2x and 4x sizes for the rewardglobalCooldownSetting(CustomReward.GlobalCooldownSetting globalCooldownSetting) Whether a cooldown is enabled and what the cooldown is.ID of the reward.image(Reward.Image image) Set of custom images of 1x, 2x and 4x sizes for the reward.Whether the reward currently enabled; if false the reward won’t show up to viewers.Whether the reward is currently in stock; if false viewers can’t redeem.Whether the reward is currently paused; if true viewers can’t redeem.isUserInputRequired(Boolean isUserInputRequired) Does the user need to enter information when redeeming the reward.maxPerStreamSetting(CustomReward.MaxPerStreamSetting maxPerStreamSetting) Whether a maximum per stream is enabled and what the maximum is.maxPerUserPerStreamSetting(CustomReward.MaxPerUserPerStreamSetting maxPerUserPerStreamSetting) Whether a maximum per user per stream is enabled and what the maximum is.The prompt for the viewer when they are redeeming the reward.redemptionsRedeemedCurrentStream(@Nullable Integer redemptionsRedeemedCurrentStream) The number of redemptions redeemed during the current live stream.shouldRedemptionsSkipRequestQueue(Boolean shouldRedemptionsSkipRequestQueue) Whether redemptions should be set to FULFILLED status immediately when redeemed and skip the request queue instead of the normal UNFULFILLED status.The title of the reward.toString()
-
Methodendetails
-
broadcasterId
ID of the channel the reward is for.- Gibt zurück:
this.
-
broadcasterLogin
Login of the channel the reward is for.- Gibt zurück:
this.
-
broadcasterName
Display name of the channel the reward is for.- Gibt zurück:
this.
-
id
ID of the reward.- Gibt zurück:
this.
-
title
The title of the reward.- Gibt zurück:
this.
-
prompt
The prompt for the viewer when they are redeeming the reward.- Gibt zurück:
this.
-
cost
The cost of the reward.- Gibt zurück:
this.
-
image
Set of custom images of 1x, 2x and 4x sizes for the reward. Can be null if no images have been uploaded.- Gibt zurück:
this.
-
defaultImage
Set of default images of 1x, 2x and 4x sizes for the reward- Gibt zurück:
this.
-
isEnabled
Whether the reward currently enabled; if false the reward won’t show up to viewers. Default: true.- Gibt zurück:
this.
-
backgroundColor
Custom background color for the reward.Format: Hex with # prefix, ideally in ALL CAPS.
- Gibt zurück:
this.
-
isUserInputRequired
Does the user need to enter information when redeeming the reward. Default: false.- Gibt zurück:
this.
-
maxPerStreamSetting
public CustomReward.CustomRewardBuilder maxPerStreamSetting(CustomReward.MaxPerStreamSetting maxPerStreamSetting) Whether a maximum per stream is enabled and what the maximum is.- Gibt zurück:
this.
-
maxPerUserPerStreamSetting
public CustomReward.CustomRewardBuilder maxPerUserPerStreamSetting(CustomReward.MaxPerUserPerStreamSetting maxPerUserPerStreamSetting) Whether a maximum per user per stream is enabled and what the maximum is.- Gibt zurück:
this.
-
globalCooldownSetting
public CustomReward.CustomRewardBuilder globalCooldownSetting(CustomReward.GlobalCooldownSetting globalCooldownSetting) Whether a cooldown is enabled and what the cooldown is.- Gibt zurück:
this.
-
isPaused
Whether the reward is currently paused; if true viewers can’t redeem.- Gibt zurück:
this.
-
isInStock
Whether the reward is currently in stock; if false viewers can’t redeem.- Gibt zurück:
this.
-
shouldRedemptionsSkipRequestQueue
public CustomReward.CustomRewardBuilder shouldRedemptionsSkipRequestQueue(Boolean shouldRedemptionsSkipRequestQueue) Whether redemptions should be set to FULFILLED status immediately when redeemed and skip the request queue instead of the normal UNFULFILLED status.- Gibt zurück:
this.
-
redemptionsRedeemedCurrentStream
public CustomReward.CustomRewardBuilder redemptionsRedeemedCurrentStream(@Nullable @Nullable Integer redemptionsRedeemedCurrentStream) The number of redemptions redeemed during the current live stream. Counts against the max_per_stream_setting limit. Null if the broadcasters stream isn’t live or max_per_stream_setting isn’t enabled.- Gibt zurück:
this.
-
cooldownExpiresAt
public CustomReward.CustomRewardBuilder cooldownExpiresAt(@Nullable @Nullable Instant cooldownExpiresAt) Timestamp of the cooldown expiration. Null if the reward isn’t on cooldown.- Gibt zurück:
this.
-
build
-
toString
-