Enum Class SubscriptionEvent.Type

java.lang.Object
java.lang.Enum<SubscriptionEvent.Type>
com.github.twitch4j.helix.domain.SubscriptionEvent.Type
All Implemented Interfaces:
Serializable, Comparable<SubscriptionEvent.Type>, Constable
Enclosing class:
SubscriptionEvent

public static enum SubscriptionEvent.Type extends Enum<SubscriptionEvent.Type>
The type of event in the event_data payload.
  • Enum Constant Details

    • SUBSCRIBE

      public static final SubscriptionEvent.Type SUBSCRIBE
      When the subscription payment is processed and the user has officially started their subscription.
    • UNSUBSCRIBE

      public static final SubscriptionEvent.Type UNSUBSCRIBE
      When a user’s subscription ends.
    • NOTIFICATION

      public static final SubscriptionEvent.Type NOTIFICATION
      When a user who is subscribed to a broadcaster notifies the broadcaster of their subscription in the chat.
  • Method Details

    • values

      public static SubscriptionEvent.Type[] 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 SubscriptionEvent.Type 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