Class DirectCheerEvent

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

@Unofficial @Deprecated @ScheduledForRemoval(inVersion="2.0.0") public final class DirectCheerEvent extends CheerEvent
This event gets called when a user does a direct cheer in an eligible channel for this experiment.
See Also:
  • Constructor Details

    • DirectCheerEvent

      @Deprecated public DirectCheerEvent(IRCMessageEvent event)
      Deprecated.
      This experiment is no longer running.
      Event Constructor
      Parameters:
      event - The raw message event.
  • Method Details

    • getAmount

      public Integer getAmount()
      Deprecated.
      Returns:
      the amount of this direct cheer, before the revenue split, and in arbitrary currency and decimal places.
    • getCurrency

      public Currency getCurrency()
      Deprecated.
      Returns:
      the parsed currency used in this direct cheer, or throws if unknown.
    • getMonetaryValue

      public BigDecimal getMonetaryValue()
      Deprecated.
      Returns:
      the parsed monetary value that was directly cheered. For example, $50 is parsed to 50
    • getSystemMessage

      public String getSystemMessage()
      Deprecated.
      Returns:
      the twitch notification text for this event (which is distinct from the user's message attached to the cheer).
    • getBits

      @Deprecated public Integer getBits()
      Deprecated.
      direct cheer values are not easily translatable into bit amounts, especially for non-USD currencies.
      Amount of Bits
      Overrides:
      getBits in class CheerEvent
    • getCheer

      public DonationAmount getCheer()
      Deprecated.
      The parsed direct cheer payment information.
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class CheerEvent
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class CheerEvent
    • canEqual

      protected boolean canEqual(Object other)
      Deprecated.
      Overrides:
      canEqual in class CheerEvent
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class CheerEvent