Class HypeTrainEvent.Contribution

java.lang.Object
com.github.twitch4j.helix.domain.HypeTrainEvent.Contribution
Enclosing class:
HypeTrainEvent

public static class HypeTrainEvent.Contribution extends Object
  • Constructor Details

    • Contribution

      public Contribution()
  • Method Details

    • getTotal

      @NonNull public @NonNull Long getTotal()
      Total amount contributed.

      If type is BITS, total represents amounts of bits used If type is SUBS, total is 500, 1000, or 2500 to represent tier 1, 2, or 3 subscriptions respectively

    • getType

      @NonNull public @NonNull HypeTrainEvent.Contribution.Type getType()
      Identifies the contribution method, either BITS or SUBS
    • getUserId

      @NonNull public @NonNull String getUserId()
      ID of the contributing 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