Set Max Per Stream
Set's the maxmimum number of redeems possible per stream
Parameters
Reward
Select required
Select the channel point reward
Redeems
int required
The number of redeems to set, this value can be a variable
Additive
boolean required
Whether or not the redeem value is to be added to the Reward's current max per stream
Variables
Name | Type | Description |
---|---|---|
No data |
C# Usage
Updates the total maximum amount of redemptions per stream for the specified reward
0.2.4
public void UpdateRewardMaxPerStream(string rewardId, long redeems, bool additive = false)
rewardIdstring required redeemslong required Amount of maximum redemptions per stream
additivebooltrue
- Will add the value of redeems
parameter to the current amount of max redeemsfalse
- Will set the current amount of max redeems to the value of redeems
parameter
CPH.UpdateRewardMaxPerStream(rewardId, redeems);
CPH.UpdateRewardMaxPerStream(rewardId, redeems, additive);