class ControlAds extends AdsCommand
AdsCommand.Cmd| Modifier and Type | Field and Description |
|---|---|
private int |
ads |
private int |
device |
private ByteBuffer |
submit |
COMMANDREQUEST, RESERVED| Constructor and Description |
|---|
ControlAds(int ads,
int device,
ByteBuffer data) |
| Modifier and Type | Method and Description |
|---|---|
long |
getPayloadLength()
Returns the length of the payload for the command to send.
|
AdsPayload |
parse(ByteBuffer full,
AdsHeader h)
Parses the reply payload.
|
AdsPayload |
preparePayload(AdsSocketChannel io,
AdsHeader h)
Prepares the payload.
|
getFlag, prepareHeaderprivate final int ads
private final int device
private final ByteBuffer submit
public ControlAds(int ads,
int device,
ByteBuffer data)
public long getPayloadLength()
AdsCommandgetPayloadLength in class AdsCommandpublic AdsPayload preparePayload(AdsSocketChannel io, AdsHeader h)
AdsCommandpreparePayload in class AdsCommandpublic AdsPayload parse(ByteBuffer full, AdsHeader h)
AdsCommandparse in class AdsCommand