Class ChannelSubscribeEvent

java.lang.Object

public class ChannelSubscribeEvent
extends EventSubUserChannelEvent
  • Constructor Details

    • ChannelSubscribeEvent

      public ChannelSubscribeEvent()
  • Method Details

    • getTier

      public com.github.twitch4j.common.enums.SubscriptionPlan getTier()
      The tier of the subscription.

      Prime is treated as 1000, at the time of writing.

    • isGift

      public java.lang.Boolean isGift()
      Whether the subscription is a gift.
    • 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