java.lang.Object
com.gmt2001.twitch.eventsub.subscriptions.channel.power_ups.redemption.PowerUpReward

public final class PowerUpReward extends Object
Basic information about the reward that was redeemed, at the time it was redeemed.
Author:
gmt2001
  • Constructor Details

    • PowerUpReward

      public PowerUpReward(JSONObject data)
      Constructor
      Parameters:
      data - Input data from the event
    • PowerUpReward

      public PowerUpReward(String id)
      Constructor
      Parameters:
      id - The reward id
  • Method Details

    • id

      public String id()
      The reward identifier.
      Returns:
    • title

      public String title()
      The reward name.
      Returns:
    • bits

      public int bits()
      The reward cost in bits.
      Returns:
    • prompt

      public String prompt()
      The reward description.
      Returns: