Class Subscription

java.lang.Object
com.github.twitch4j.eventsub.domain.chat.Subscription

public class Subscription extends Object
  • Constructor Details

    • Subscription

      public Subscription()
  • Method Details

    • getDurationMonths

      public Integer getDurationMonths()
      The number of months the subscription is for.
    • getSubTier

      public SubscriptionPlan getSubTier()
      The type of subscription plan being used.

      Does not contain SubscriptionPlan.TWITCH_PRIME; use isPrime() instead.

    • isPrime

      public Boolean isPrime()
      Indicates if the subscription was obtained through Amazon Prime.
    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object