Class RewardGiftEvent

java.lang.Object
com.github.philippheuer.events4j.core.domain.Event
All Implemented Interfaces:
com.github.philippheuer.events4j.api.domain.IEvent

public final class RewardGiftEvent extends AbstractChannelEvent
Called when a monetary event (e.g. sub gift or cheer) results in rewards (e.g. emotes) being shared with others.
  • Constructor Details

    • RewardGiftEvent

      public RewardGiftEvent(EventChannel channel, EventUser user, String domain, String triggerType, Integer selectedCount, Integer totalRewardCount, Integer triggerAmount)
      Event Constructor
      Parameters:
      channel - The channel that this event originates from.
      user - The user that triggered this event.
      domain - The domain of the rewards being gifted.
      triggerType - The type of monetary event that triggered the reward gift.
      selectedCount - The number of gifted rewards as part of the primary selection.
      totalRewardCount - The total number of rewards being gifted.
      triggerAmount - The number of instances of the trigger.
  • Method Details

    • getUser

      public EventUser getUser()
      The user that triggered this event.
    • getDomain

      public String getDomain()
      The domain of the rewards being gifted (e.g. "pride_megacommerce_2020").
    • getTriggerType

      public String getTriggerType()
      The type of monetary event that triggered the reward gift (e.g., "SUBGIFT", "CHEER").
    • getSelectedCount

      public Integer getSelectedCount()
      The number of gifted rewards as part of the primary selection.
    • getTotalRewardCount

      public Integer getTotalRewardCount()
      The total number of rewards being gifted (e.g. 5 emotes).
    • getTriggerAmount

      public Integer getTriggerAmount()
      The number of instances of the trigger (e.g. 1 sub gift or 300 bits).
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class AbstractChannelEvent
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class AbstractChannelEvent
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class AbstractChannelEvent
    • toString

      public String toString()
      Overrides:
      toString in class AbstractChannelEvent