Interface CustomRewardEncodeMixIn
public interface CustomRewardEncodeMixIn
When serializing
CustomReward for
TwitchHelix.createCustomReward(String, String, CustomReward) or
TwitchHelix.updateCustomReward(String, String, String, CustomReward),
Twitch requires MaxPerStreamSetting, MaxPerUserPerStreamSetting, and GlobalCooldownSetting
to be sent unwrapped (i.e., in the root of the object).
This departs from how CustomReward is to be deserialized, which motivates this MixIn.
-
Method Summary
Modifier and TypeMethodDescription
-
Method Details
-
getMaxPerStreamSetting
CustomReward.MaxPerStreamSetting getMaxPerStreamSetting() -
getMaxPerUserPerStreamSetting
CustomReward.MaxPerUserPerStreamSetting getMaxPerUserPerStreamSetting() -
getGlobalCooldownSetting
CustomReward.GlobalCooldownSetting getGlobalCooldownSetting()
-