Enum Class TripStatus

java.lang.Object
java.lang.Enum<TripStatus>
com.veeroute.lss.studio.model.TripStatus
All Implemented Interfaces:
Serializable, Comparable<TripStatus>, Constable

public enum TripStatus extends Enum<TripStatus>
Current [trip status](#/section/description/trip-status): * `FREE` - the trip has no assigned crew, initial status, awaiting assignment by the operator * `ASSIGNED` - the trip has a crew assigned, awaiting dispatch to the crew by the operator * `SENT` - the trip has been sent to the crew, awaiting confirmation of receipt by the crew * `RECEIVED` - the trip has been received by the crew, awaiting acceptance by the crew * `CONFIRMED` - the trip has been accepted by the crew, awaiting work from the crew * `REJECTED` - the trip has been rejected by the crew, awaiting assignment by the operator * `EXECUTING` - the trip is in progress, awaiting completion by the crew * `FINISHED` - the trip has been completed, final status * `CANCELED` - the trip has been canceled, final status
  • Enum Constant Details

  • Method Details

    • values

      public static TripStatus[] 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 TripStatus 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
    • getValue

      public String getValue()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<TripStatus>
    • fromValue

      public static TripStatus fromValue(String value)
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Throws:
      IOException