Class Contribution

java.lang.Object
com.github.twitch4j.eventsub.domain.Contribution

public class Contribution extends Object
  • Constructor Details

    • Contribution

      public Contribution()
  • Method Details

    • getUserId

      public String getUserId()
      The ID of the user.
    • getUserName

      public String getUserName()
      The display name of the user.
    • getUserLogin

      public String getUserLogin()
      The login name of the user.
    • getType

      public Contribution.Type getType()
      Type of contribution.
    • getTotal

      public Integer getTotal()
      The total contributed.

      If type is bits, total represents the amount of Bits used.

      If type is subscription, total is 500, 1000, or 2500 to represent tier 1, 2, or 3 subscriptions, respectively.

    • 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