public static class CapabilityRemoteControl.TestCommand<T extends Command<? extends Capability.CommandId>> extends Command<CapabilityRemoteControl.CommandId>
Capability.sendResourceCommand(buzz.getcoco.iot.Command<T>, buzz.getcoco.iot.Capability.CommandStatusListener<T>)
while sending test command to IR Blaster.Command.State
Modifier and Type | Field and Description |
---|---|
int |
brandId |
Capability.CapabilityId |
capabilityId |
CapabilityRemoteControl.Category |
categoryId |
T |
command |
int |
pairingCode |
Constructor and Description |
---|
TestCommand(CapabilityRemoteControl.Category category,
int brandId,
int pairingCode,
Capability.CapabilityId capabilityId,
T command)
The command which will be blasted by IR Blaster.
|
getCommandId, getTimeout, setCommandId, setTimeout, toJsonObject, toString
@SerializedName(value="categoryId") public final CapabilityRemoteControl.Category categoryId
@SerializedName(value="brandId") public final int brandId
@SerializedName(value="pairingCode") public final int pairingCode
@SerializedName(value="capabilityId") public final Capability.CapabilityId capabilityId
@SerializedName(value="commandParamValuesStruct") public final T extends Command<? extends Capability.CommandId> command
public TestCommand(CapabilityRemoteControl.Category category, int brandId, int pairingCode, Capability.CapabilityId capabilityId, T command)
category
- Category of the command (AC/TV)brandId
- Brand id of the recipient devicepairingCode
- Pairing code generated during pairingcapabilityId
- CapabilityID of the recipient devicecommand
- Command which has to be blasted