Class ChannelSubscriptionGiftEvent

java.lang.Object

public class ChannelSubscriptionGiftEvent
extends EventSubUserChannelEvent
  • Constructor Details

    • ChannelSubscriptionGiftEvent

      public ChannelSubscriptionGiftEvent()
  • Method Details

    • getTier

      public com.github.twitch4j.common.enums.SubscriptionPlan getTier()
      The tier of subscriptions in the subscription gift.
    • getTotal

      public java.lang.Integer getTotal()
      The number of subscriptions in the subscription gift.
    • getCumulativeTotal

      @Nullable public @Nullable java.lang.Integer getCumulativeTotal()
      The number of subscriptions gifted by this user in the channel. This value is null for anonymous gifts or if the gifter has opted out of sharing this information.
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class EventSubUserChannelEvent
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class EventSubUserChannelEvent
    • canEqual

      protected boolean canEqual​(java.lang.Object other)
      Overrides:
      canEqual in class EventSubUserChannelEvent
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class EventSubUserChannelEvent