Class GiftSubUpgradeEvent

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

public final class GiftSubUpgradeEvent extends AbstractChannelEvent
Called when a user upgrades to a paid subscription from previously being gifted a subscription.
  • Constructor Details

    • GiftSubUpgradeEvent

      public GiftSubUpgradeEvent(EventChannel channel, EventUser upgradingUser, String promoName, Integer promoGiftTotal, String gifterLogin, String gifterName)
      Constructor
      Parameters:
      channel - the channel where the event took place
      upgradingUser - the user that is upgrading their subscription
      promoName - the ongoing subscriptions promo, if applicable
      promoGiftTotal - the number of gifts the gifter has given during the promo
      gifterLogin - the login of the user who gifted the subscription, if applicable
      gifterName - the display name of the user who gifted the subscription, if applicable
  • Method Details

    • getUpgradingUser

      public EventUser getUpgradingUser()
      The user that is upgrading their subscription.
    • getPromoName

      public String getPromoName()
      The subscriptions promo, if any, that is ongoing; e.g. Subtember 2018.
    • getPromoGiftTotal

      public Integer getPromoGiftTotal()
      The number of gifts the gifter has given during the promo indicated by getPromoName().
    • getGifterLogin

      public String getGifterLogin()
      The login of the user who gifted the subscription, if applicable.
    • getGifterName

      public String getGifterName()
      The display name of the user who gifted the subscription, if applicable.
    • 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