Enum Class Video.SearchOrder

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

public static enum Video.SearchOrder extends Enum<Video.SearchOrder>
The order to sort the returned videos in.
  • Enum Constant Details

    • TIME

      public static final Video.SearchOrder TIME
      Sort the results in descending order by when they were created (i.e., latest video first).
    • VIEWS

      public static final Video.SearchOrder VIEWS
      Sort the results in descending order by most views (i.e., highest number of views first).
  • Field Details

  • Method Details

    • values

      public static Video.SearchOrder[] 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 Video.SearchOrder 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<Video.SearchOrder>