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 subscriptions.
    • NEW_SUBSCRIPTIONS

      public static final GoalType NEW_SUBSCRIPTIONS
      The goal is to increase subscriptions. This type shows only the net increase in subscriptions (it does not account for users that stopped subscribing since the goal's inception).
    • 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).
  • 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