- java.lang.Object
-
- java.lang.Enum<CdjStatus.PlayState2>
-
- org.deepsymmetry.beatlink.CdjStatus.PlayState2
-
- All Implemented Interfaces:
Serializable
,Comparable<CdjStatus.PlayState2>
- Enclosing class:
- CdjStatus
@API(status=STABLE) public static enum CdjStatus.PlayState2 extends Enum<CdjStatus.PlayState2>
The possible values of the second play state found in the packet, labeled P2 in the Packet Analysis document.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MOVING
The player is moving through a track.OPUS_MOVING
We have seen the Opus Quad report this value when it is playing but the main status flag lies about that fact.STOPPED
The player is stopped.UNKNOWN
We saw an unknown value, so we don’t know what it means.
-
Field Summary
Fields Modifier and Type Field Description byte
protocolValue
The value that represents this play state in a status update.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CdjStatus.PlayState2
valueOf(String name)
Returns the enum constant of this type with the specified name.static CdjStatus.PlayState2[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MOVING
public static final CdjStatus.PlayState2 MOVING
The player is moving through a track.
-
STOPPED
public static final CdjStatus.PlayState2 STOPPED
The player is stopped.
-
OPUS_MOVING
public static final CdjStatus.PlayState2 OPUS_MOVING
We have seen the Opus Quad report this value when it is playing but the main status flag lies about that fact.
-
UNKNOWN
public static final CdjStatus.PlayState2 UNKNOWN
We saw an unknown value, so we don’t know what it means.
-
-
Method Detail
-
values
public static CdjStatus.PlayState2[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CdjStatus.PlayState2 c : CdjStatus.PlayState2.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CdjStatus.PlayState2 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 nameNullPointerException
- if the argument is null
-
-