Class Subscription

java.lang.Object
com.github.twitch4j.helix.domain.Subscription

public class Subscription extends Object
  • Constructor Details

    • Subscription

      public Subscription()
  • Method Details

    • getPlan_name

      @Deprecated public String getPlan_name()
      Deprecated.
      will be removed in favor of .getPlanName()
      Returns:
      the subscription plan name
    • getBroadcasterId

      @NonNull public @NonNull String getBroadcasterId()
      User ID of the broadcaster.
    • getBroadcasterLogin

      @NonNull public @NonNull String getBroadcasterLogin()
      Login name of the broadcaster.
    • getBroadcasterName

      @NonNull public @NonNull String getBroadcasterName()
      Display name of the broadcaster.
    • getIsGift

      public Boolean getIsGift()
      Determines if the subscription is a gift subscription.
    • getGifterId

      public String getGifterId()
      ID of the user who gifted the sub.
    • getGifterLogin

      public String getGifterLogin()
      If the subscription was gifted, this is the login of the gifter.
    • getGifterName

      public String getGifterName()
      Display name of the user who gifted the sub.
    • getTier

      @NonNull public @NonNull String getTier()
      Type of subscription (Tier 1, Tier 2, Tier 3). 1000 = Tier 1, 2000 = Tier 2, 3000 = Tier 3 subscriptions.
    • getPlanName

      @NonNull public @NonNull String getPlanName()
      Name of the subscription.
    • getUserId

      @NonNull public @NonNull String getUserId()
      ID of the subscribed user.
    • getUserLogin

      @NonNull public @NonNull String getUserLogin()
      Login of the subscribed user.
    • getUserName

      @NonNull public @NonNull String getUserName()
      Display name of the subscribed user.
    • 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