Class GiftPayForward

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

public class GiftPayForward extends Object
Metadata for when a user (who has a gifted sub) gifts a sub to another user.
  • Constructor Details

    • GiftPayForward

      public GiftPayForward()
  • Method Details

    • wasGifterAnonymous

      public Boolean wasGifterAnonymous()
      Whether the gift was given anonymously.
    • getGifterUserId

      @Nullable public @Nullable String getGifterUserId()
      The user ID of the user who originally gifted the subscription. Null if anonymous.
    • getGifterUserName

      @Nullable public @Nullable String getGifterUserName()
      The user name of the user who originally gifted the subscription. Null if anonymous.
    • getGifterUserLogin

      @Nullable public @Nullable String getGifterUserLogin()
      The user login of the user who originally gifted the subscription. Null if anonymous.
    • getRecipientUserId

      @Nullable public @Nullable String getRecipientUserId()
      The user id of the recipient of the paid-forward gift sub. Null if gifted to the broad community, rather than a specific target.
    • getRecipientUserName

      @Nullable public @Nullable String getRecipientUserName()
      The user name of the recipient of the paid-forward gift sub. Null if gifted to the broad community, rather than a specific target.
    • getRecipientUserLogin

      @Nullable public @Nullable String getRecipientUserLogin()
      The user login of the recipient of the paid-forward gift sub. Null if gifted to the broad community, rather than a specific target.
    • 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