public static class CapabilityRemoteControl.SetAppliancePairingCode extends Command<CapabilityRemoteControl.CommandId>
Capability.sendResourceCommand(buzz.getcoco.iot.Command<T>, buzz.getcoco.iot.Capability.CommandStatusListener<T>) to set paring code of an appliance.Command.State| Constructor and Description |
|---|
SetAppliancePairingCode(java.lang.String applianceId,
int brandId,
int pairingCode)
Constructor for SetAppliancePairingCode command.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getApplianceId()
A function to get
applianceId. |
int |
getBrandId()
A function to get
brandId of appliance. |
int |
getPairingCode()
A function to get
pairingCode of appliance. |
getCommandId, getTimeout, setCommandId, setTimeout, toJsonObject, toStringpublic SetAppliancePairingCode(java.lang.String applianceId,
int brandId,
int pairingCode)
applianceId - String id of the appliancebrandId - Brand id of the devicepairingCode - Pairing code generated during pairingpublic java.lang.String getApplianceId()
applianceId.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_PAIRING_CODE.