Enum Class Endpoints

java.lang.Object
java.lang.Enum<Endpoints>
com.reign.api.kat.Endpoints
All Implemented Interfaces:
Serializable, Comparable<Endpoints>, Constable

public enum Endpoints extends Enum<Endpoints>
  • Enum Constant Details

    • Hello

      public static final Endpoints Hello
    • Guilds

      public static final Endpoints Guilds
    • Guild

      public static final Endpoints Guild
    • GuildData

      public static final Endpoints GuildData
    • GuildPrefix

      public static final Endpoints GuildPrefix
    • AllMemberData

      public static final Endpoints AllMemberData
    • MemberData

      public static final Endpoints MemberData
  • 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Endpoints>
    • buildEndpoint

      public static String buildEndpoint(Endpoints endpoint, String... params)
      Takes a Endpoint enum and parameters, and builds an endpoint string.
      Parameters:
      endpoint - Endpoints. enum
      params - URL parameters of the endpoint
      Returns:
      String url