Enum Class Endpoints

java.lang.Object
java.lang.Enum<Endpoints>
dev.le_app.mcss_api_java.Endpoints
All Implemented Interfaces:
Serializable, Comparable<Endpoints>, Constable

public enum Endpoints extends Enum<Endpoints>
List of endpoints for the API.
  • Enum Constant Details

    • ROOT

      public static final Endpoints ROOT
      Root endpoint of the API
    • SERVERS

      public static final Endpoints SERVERS
      Endpoint for getting server list
    • SERVER_DETAILS

      public static final Endpoints SERVER_DETAILS
      Endpoint for getting server details
    • SERVER_COUNT

      public static final Endpoints SERVER_COUNT
      Endpoint for getting server count
    • SERVER_COUNT_FILTER

      public static final Endpoints SERVER_COUNT_FILTER
      Endpoint for getting server count with filter
    • SERVER_COUNT_FILTER_SRVTYPE

      public static final Endpoints SERVER_COUNT_FILTER_SRVTYPE
      Endpoint for getting server list with filter and servertype
    • EXECUTE_SERVER_ACTION

      public static final Endpoints EXECUTE_SERVER_ACTION
      Endpoint for executing a server action
    • EXECUTE_SERVER_COMMAND

      public static final Endpoints EXECUTE_SERVER_COMMAND
      Endpoint for executing a server command
    • EXECUTE_SERVER_COMMANDS

      public static final Endpoints EXECUTE_SERVER_COMMANDS
      Endpoint for executing multiple commands
    • SERVER_BACKUPS

      public static final Endpoints SERVER_BACKUPS
      Endpoint for getting server backup list
    • SERVER_BACKUP_DETAILS

      public static final Endpoints SERVER_BACKUP_DETAILS
      Endpoint for getting server backup details
    • GET_STATS

      public static final Endpoints GET_STATS
      Endpoint for getting the server stats
    • GET_ICON

      public static final Endpoints GET_ICON
      Endpoint for getting the server icon
    • GET_CONSOLE

      public static final Endpoints GET_CONSOLE
      Endpoint for getting the server console
    • GET_CONSOLE_FROM_BEGINNING

      public static final Endpoints GET_CONSOLE_FROM_BEGINNING
      Endpoint for getting the server console from beginning
    • GET_CONSOLE_REVERSED

      public static final Endpoints GET_CONSOLE_REVERSED
      Endpoint for getting the server console reversed
    • GET_CONSOLE_FROM_BEGINNING_REVERSED

      public static final Endpoints GET_CONSOLE_FROM_BEGINNING_REVERSED
      Endpoint for getting the server console from beginning reversed
    • IS_CONSOLE_OUTDATED

      public static final Endpoints IS_CONSOLE_OUTDATED
      Endpoint for checking if the console is outdated
    • GET_SCHEDULER

      public static final Endpoints GET_SCHEDULER
      Endpoint for getting the server scheduler
    • GET_TASK_AMOUNT_FILTER

      public static final Endpoints GET_TASK_AMOUNT_FILTER
      Endpoint for getting the task amount filtered
    • GET_TASK_LIST

      public static final Endpoints GET_TASK_LIST
      Endpoint for getting the task list
    • CREATE_TASK

      public static final Endpoints CREATE_TASK
      Endpoint for creating a task
    • GET_TASK

      public static final Endpoints GET_TASK
      Endpoint for getting the task details
  • Method Details

    • values

      public static Endpoints[] 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 Endpoints 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
    • getEndpoint

      public String getEndpoint()
      Returns the endpoint as string.
      Returns:
      The endpoint as string.