Enum Class ContentClassification

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

public enum ContentClassification extends Enum<ContentClassification>
Content classification tags that indicate that a stream may not be suitable for certain viewers.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Excessive tobacco glorification or promotion, any marijuana consumption/use, legal drug and alcohol induced intoxication, discussions of illegal drugs.
    Participating in online or in-person gambling, poker or fantasy sports, that involve the exchange of real money.
    Games that are rated Mature or less suitable for a younger audience.
    Prolonged, and repeated use of obscenities, profanities, and vulgarities, especially as a regular part of speech.
    Content that focuses on sexualized physical attributes and activities, sexual topics, or experiences.
    The channel has a content classification label that is unrecognized by the library; Please file an issue on our GitHub repository.
    Simulations and/or depictions of realistic violence, gore, extreme injury, or death.
  • Method Summary

    Modifier and Type
    Method
    Description
    static @NotNull ContentClassification
    parse(@NotNull String id)
     
     
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • DRUGS

      public static final ContentClassification DRUGS
      Excessive tobacco glorification or promotion, any marijuana consumption/use, legal drug and alcohol induced intoxication, discussions of illegal drugs.
    • GAMBLING

      public static final ContentClassification GAMBLING
      Participating in online or in-person gambling, poker or fantasy sports, that involve the exchange of real money.
    • MATURE_GAME

      public static final ContentClassification MATURE_GAME
      Games that are rated Mature or less suitable for a younger audience.

      This tag is automatically applied based on the stream category.

    • PROFANITY

      public static final ContentClassification PROFANITY
      Prolonged, and repeated use of obscenities, profanities, and vulgarities, especially as a regular part of speech.
    • SEXUAL

      public static final ContentClassification SEXUAL
      Content that focuses on sexualized physical attributes and activities, sexual topics, or experiences.
    • VIOLENCE

      public static final ContentClassification VIOLENCE
      Simulations and/or depictions of realistic violence, gore, extreme injury, or death.
    • UNKNOWN

      public static final ContentClassification UNKNOWN
      The channel has a content classification label that is unrecognized by the library; Please file an issue on our GitHub repository.
  • Method Details

    • values

      public static ContentClassification[] 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 ContentClassification 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ContentClassification>
    • parse

      @NotNull @Internal public static @NotNull ContentClassification parse(@NotNull @NotNull String id)