be.lassi.lanbox.commands
Class CommonGetDirectory
java.lang.Object
be.lassi.lanbox.commands.Command
be.lassi.lanbox.commands.LanboxCommand
be.lassi.lanbox.commands.CommonGetDirectory
public class CommonGetDirectory
- extends LanboxCommand
Gets a list of all the cue lists that are stored on the lanbox. The command
can get a maximum of 80 cue lists in one go. If more cue lists are stored
on the lanbox, then the command has to be performed repeatedly with varying
startCueList parameters to retrieve all.
Field Summary |
static java.lang.String |
ID
Lanbox command identifier. |
static int |
MAX_CUE_LISTS
The maximum number of cue lists that is returned by the
command in one go. |
Method Summary |
void |
appendCommand(java.lang.StringBuilder b)
Appends a textual description of the command. |
void |
appendResponse(java.lang.StringBuilder b)
Appends a textual description of the command reponse. |
boolean |
equals(java.lang.Object object)
|
java.util.List<CueListInfo> |
getCueListInfos()
Gets the information about the cue lists. |
int |
hashCode()
|
void |
processResponse(byte[] bytes)
Processes given reponse buffer. |
Methods inherited from class be.lassi.lanbox.commands.LanboxCommand |
get, getBoolean, getId, getInt, getInt4, getRequest, getRequestString, getResponse, set, set2, set2, set4 |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ID
public static final java.lang.String ID
- Lanbox command identifier.
- See Also:
- Constant Field Values
MAX_CUE_LISTS
public static final int MAX_CUE_LISTS
- The maximum number of cue lists that is returned by the
command in one go.
- See Also:
- Constant Field Values
CommonGetDirectory
public CommonGetDirectory(byte[] request)
- Constructs command from request buffer.
- Parameters:
request
- the lanbox request buffer
CommonGetDirectory
public CommonGetDirectory(int startCueList)
- Constructs a new command.
- Parameters:
startCueList
- the number of the first cue list to get
appendCommand
public void appendCommand(java.lang.StringBuilder b)
- Appends a textual description of the command.
- Overrides:
appendCommand
in class Command
- Parameters:
b
- the string builder to which to append
appendResponse
public void appendResponse(java.lang.StringBuilder b)
- Appends a textual description of the command reponse.
- Overrides:
appendResponse
in class Command
- Parameters:
b
- the string builder to which to append
equals
public boolean equals(java.lang.Object object)
-
- Overrides:
equals
in class LanboxCommand
getCueListInfos
public java.util.List<CueListInfo> getCueListInfos()
- Gets the information about the cue lists.
- Returns:
- the information about the cue lists
hashCode
public int hashCode()
-
- Overrides:
hashCode
in class Command
processResponse
public void processResponse(byte[] bytes)
- Processes given reponse buffer.
- Overrides:
processResponse
in class LanboxCommand
- Parameters:
bytes
- the response buffer to be processed