public class CapabilityRemoteControl extends Capability
Capability.CapabilityId, Capability.CommandStatusListener<T extends Capability.CommandId>| Modifier and Type | Field and Description |
|---|---|
static Capability.CapabilityId |
ID |
| Modifier | Constructor and Description |
|---|---|
protected |
CapabilityRemoteControl(int id,
Resource parent)
Constructor of the current class.
|
| Modifier and Type | Method and Description |
|---|---|
protected <T extends CommandIdInterface> |
createCommandResponseArgs(T commandId,
com.google.gson.JsonElement jsonResponse)
create response for the command.
|
protected Command<? extends Capability.CommandId> |
extendedCreateCommand(int primitiveCommandId,
com.google.gson.JsonElement commandParams)
A function to create the command from the Json params.
|
void |
searchBrands(int searchCount,
int offsetIndex,
Parameter.SearchType st,
InfoRequest.SortOrder so,
InfoRequest.SortType soT,
CapabilityRemoteControl.Category cat,
java.lang.String brandSearchQuery,
Device.InfoRequestStatusListener cbs)
A function to make an info request for search program mode.
|
boolean |
supports(Capability.CommandId commandId)
This function is used to check if a command is supported by the capability or not.
|
clearAndSetStandardCommandSet, containsAttribute, containsAttribute, createCommand, getAttribute, getAttribute, getAttributeMap, getCapabilityWrapper, getId, getName, getParent, getSupportedCommands, hashCode, interceptCommand, internalAddAttribute, internalMarkAsReady, internalRemoveAttribute, internalSetName, internalSetParent, isReady, iterator, sendResourceCommand, setCapabilityWrapper, toStringpublic static final Capability.CapabilityId ID
protected CapabilityRemoteControl(int id,
Resource parent)
id - The unique id Of the capabilityparent - The parent Resource of the capability.public boolean supports(Capability.CommandId commandId)
supports in class CapabilitycommandId - The Id denoting the command to be sent.protected Command<? extends Capability.CommandId> extendedCreateCommand(int primitiveCommandId, com.google.gson.JsonElement commandParams)
extendedCreateCommand in class CapabilityprimitiveCommandId - The int form of the commandIdcommandParams - The Json params that can form a commandprotected <T extends CommandIdInterface> CommandResponse.Args<T> createCommandResponseArgs(T commandId, com.google.gson.JsonElement jsonResponse)
createCommandResponseArgs in class CapabilitycommandId - The command ID which has to be respondedjsonResponse - The response bodyCommandResponse.Argspublic void searchBrands(int searchCount,
int offsetIndex,
Parameter.SearchType st,
InfoRequest.SortOrder so,
InfoRequest.SortType soT,
CapabilityRemoteControl.Category cat,
java.lang.String brandSearchQuery,
Device.InfoRequestStatusListener cbs)
searchCount - Search count for info requestoffsetIndex - offset provided for search requestst - Search type (Brand)so - Sort order (Ascending/Descending)soT - Sort type (Ex: sort by time of creation)cat - Category of the command (AC/TV)brandSearchQuery - a string param for brand search criteriacbs - Listener that receives status of info request made