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

public class Badge extends Object
  • Constructor Details

    • Badge

      public Badge()
  • Method Details

    • getSetId

      public String getSetId()
      An ID that identifies this set of chat badges.

      For example: "bits", "subscriber", "vip", "moderator", "broadcaster", "partner", "ambassador", "turbo", "hype-train", "no_audio", "no_video", "sub-gifter", "sub-gift-leader", "premium" (i.e., twitch prime)

    • getId

      public String getId()
      An ID that identifies this version of the badge. The ID can be any value.

      For example, for Bits, the ID is the Bits tier level, but for World of Warcraft, it could be Alliance or Horde.

    • getInfo

      public String getInfo()
      Contains metadata related to the chat badges in the badges tag.

      Currently, this tag contains metadata only for subscriber badges, to indicate the number of months the user has been a subscriber.

    • 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