Enum Class GoalType

java.lang.Object
java.lang.Enum<GoalType>
com.github.twitch4j.eventsub.domain.GoalType
All Implemented Interfaces:
Serializable, Comparable<GoalType>, Constable

public enum GoalType extends Enum<GoalType>
The type of goal.
  • Enum Constant Details

    • FOLLOWERS

      public static final GoalType FOLLOWERS
      The goal is to increase followers.
    • SUBSCRIPTIONS

      public static final GoalType SUBSCRIPTIONS
      The goal is to increase subscriptions. This type shows the net increase or decrease in tier points associated with the subscriptions.
    • NEW_SUBSCRIPTIONS

      public static final GoalType NEW_SUBSCRIPTIONS
      The goal is to increase subscriptions. This type shows only the net increase in tier points associated with the subscriptions (it does not account for users that unsubscribed since the goal started).
    • SUB_COUNT

      public static final GoalType SUB_COUNT
      The goal is to increase subscriptions. This type shows the net increase or decrease in the number of subscriptions.
    • NEW_SUB_COUNT

      public static final GoalType NEW_SUB_COUNT
      The goal is to increase subscriptions. This type shows only the net increase in the number of subscriptions (it does not account for users that unsubscribed since the goal started).
    • BITS

      public static final GoalType BITS
      The goal is to increase the amount of Bits used on the channel.
      See Also:
    • CHEERS

      public static final GoalType CHEERS
      The goal is to increase the number of unique Cheerers to Cheer on the channel.
      See Also:
    • UNKNOWN

      public static final GoalType UNKNOWN
      An unknown goal type; please create a GitHub issue.
  • Method Details

    • values

      public static GoalType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static GoalType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null