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>) to test IR blaster commands.Command.State| 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.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBrandId()
A function to get
brandId of appliance. |
Capability.CapabilityId |
getCapabilityId()
A function to get
capabilityId. |
CapabilityRemoteControl.Category |
getCategoryId()
A function to
categoryId. |
T |
getCommand()
A function to get
command. |
int |
getPairingCode()
A function to get
pairingCode of appliance. |
getCommandId, getTimeout, setCommandId, setTimeout, toJsonObject, toStringpublic 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 blastedpublic CapabilityRemoteControl.Category getCategoryId()
categoryId.public int getBrandId()
brandId of appliance.
Note: In case appliance is added through CapabilityRemoteControl.ProgramMode.LEARN_MODE,
value needs to be CapabilityRemoteControl.AddAppliance.LEARN_MODE_BRAND_ID.
public int getPairingCode()
pairingCode of appliance.
Note: In case appliance is added through CapabilityRemoteControl.ProgramMode.LEARN_MODE,
value needs to be CapabilityRemoteControl.AddAppliance.LEARN_MODE_BRAND_ID.
public Capability.CapabilityId getCapabilityId()
capabilityId.