Enum Outcome.Status

java.lang.Object
java.lang.Enum<Outcome.Status>
privbot.api.Outcome.Status
All Implemented Interfaces:
Serializable, Comparable<Outcome.Status>, java.lang.constant.Constable
Enclosing class:
Outcome

public static enum Outcome.Status extends Enum<Outcome.Status>
Why an action was or was not sent.
  • Enum Constant Details

    • DISPATCHED

      public static final Outcome.Status DISPATCHED
      The action was sent to the game. Its effect still has to be observed.
    • UNSUPPORTED

      public static final Outcome.Status UNSUPPORTED
      The unified API cannot do this on this server (Capabilities says so). Nothing was sent.
    • NOT_FOUND

      public static final Outcome.Status NOT_FOUND
      The target (item, NPC, object, slot) was not there. Nothing was sent.
    • NOT_READY

      public static final Outcome.Status NOT_READY
      The game is not in a state where this can be sent yet (interface closed, not logged in). Nothing was sent.
    • REFUSED

      public static final Outcome.Status REFUSED
      The API declined to send it (not supported on this client, a guard, actions on hold). Nothing was sent.
    • FAILED

      public static final Outcome.Status FAILED
      Sending was attempted and threw or failed.
  • Method Details

    • values

      public static Outcome.Status[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Outcome.Status valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null