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

public class SubGift extends Object
  • Constructor Details

    • SubGift

      public SubGift()
  • Method Details

    • getDurationMonths

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

      @Nullable public @Nullable Integer getCumulativeTotal()
      The amount of gifts the gifter has given in this channel. Null if anonymous.
    • getRecipientUserId

      public String getRecipientUserId()
      The user ID of the subscription gift recipient.
    • getRecipientUserName

      public String getRecipientUserName()
      The user name of the subscription gift recipient.
    • getRecipientUserLogin

      public String getRecipientUserLogin()
      The user login of the subscription gift recipient.
    • getSubTier

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

      Cannot be SubscriptionPlan.TWITCH_PRIME.

    • getCommunityGiftId

      @Nullable public @Nullable String getCommunityGiftId()
      The ID of the associated community gift. Null if not associated with a community gift.
      See Also:
    • 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