public class InfoRequest
extends java.lang.Object
Parameter.Key
and
sent to a device.Modifier and Type | Class and Description |
---|---|
static class |
InfoRequest.BrandSearchCriteria
This class carries information whether the brand search is made for TV/AC.
|
static class |
InfoRequest.ContentPlayback
This class forms a value of request corresponding to
Parameter.Key.CONTENT_PLAYBACK . |
static class |
InfoRequest.ContentSearch
This class forms a value of request corresponding to
Parameter.Key.CONTENT_SEARCH . |
static class |
InfoRequest.ListenPort
This class forms a value of request corresponding to
Parameter.Key.AVAIL_LISTEN_PORT . |
static class |
InfoRequest.RemoteButtonInfo
This class acts as value of request corresponding to
Parameter.Key.REMOTE_BUTTON_INFO . |
static class |
InfoRequest.RemotePairingCapabilities
This class acts as a value of request corresponding to
Parameter.Key.REMOTE_PAIR_CAPABILITIES . |
static class |
InfoRequest.RemotePairingCode
This class acts as a value of request corresponding to
Parameter.Key.REMOTE_PAIRING_CODES . |
static class |
InfoRequest.Search
This class acts as a value of request corresponding to
Parameter.Key.REMOTE_SEARCH . |
static interface |
InfoRequest.SearchCriteria
A marker interface to classify search criteria.
|
static class |
InfoRequest.SortOrder
An enum denoting possible sorting order options.
|
static class |
InfoRequest.SortType
An enum denoting possible type of sort options.
|
static class |
InfoRequest.UserDefined
This class forms a value of request corresponding to
Parameter.Key.USER_DEFINED . |
static interface |
InfoRequest.Value
A marker interface for values corresponding to key as in
Parameter.Key for InfoRequest. |
Modifier and Type | Field and Description |
---|---|
protected long |
cmdSeqNum |
protected long |
deviceNodeId |
java.util.List<Parameter<InfoRequest.Value>> |
mandatoryParameters |
java.lang.String |
messageText |
protected java.lang.String |
networkId |
java.util.List<Parameter<InfoRequest.Value>> |
optionalParameters |
protected long |
requestId |
protected Command.State |
state |
long |
timeout |
Modifier | Constructor and Description |
---|---|
|
InfoRequest(java.lang.String messageText,
java.util.List<Parameter<InfoRequest.Value>> mandatoryParameters)
A class to request information from a device.
|
|
InfoRequest(java.lang.String messageText,
java.util.List<Parameter<InfoRequest.Value>> mandatoryParameters,
java.util.List<Parameter<InfoRequest.Value>> optionalParameters)
A class to request information from a device.
|
protected |
InfoRequest(java.lang.String networkId,
long deviceNodeId,
java.lang.String messageText,
java.util.List<Parameter<InfoRequest.Value>> mandatoryParameters,
java.util.List<Parameter<InfoRequest.Value>> optionalParameters)
A class to request information from a device.
|
protected |
InfoRequest(java.lang.String networkId,
long deviceNodeId,
java.lang.String messageText,
long timeout,
java.util.List<Parameter<InfoRequest.Value>> mandatoryParameters,
java.util.List<Parameter<InfoRequest.Value>> optionalParameters)
A class to request information from a device.
|
Modifier and Type | Method and Description |
---|---|
long |
getCmdSeqNum() |
Device |
getDevice() |
long |
getRequestId() |
Command.State |
getState() |
long |
getTimeout() |
Parameter.Key[] |
mandatoryKeys()
A function to create/extract mandatory keys which should be responded
from mandatory parameters.
|
Parameter.Key[] |
optionalKeys()
A function to get optional parameters.
|
void |
setTimeout(long timeout) |
protected com.google.gson.JsonElement |
toJson() |
protected transient Command.State state
protected transient long requestId
protected transient long cmdSeqNum
protected transient java.lang.String networkId
protected transient long deviceNodeId
public long timeout
public final java.lang.String messageText
public final java.util.List<Parameter<InfoRequest.Value>> mandatoryParameters
public final java.util.List<Parameter<InfoRequest.Value>> optionalParameters
public InfoRequest(java.lang.String messageText, java.util.List<Parameter<InfoRequest.Value>> mandatoryParameters)
messageText
- The message that has to be passed along with the requestmandatoryParameters
- The params which must be respondedpublic InfoRequest(java.lang.String messageText, java.util.List<Parameter<InfoRequest.Value>> mandatoryParameters, java.util.List<Parameter<InfoRequest.Value>> optionalParameters)
messageText
- The message that has to be passed along with the requestmandatoryParameters
- The params which must be respondedoptionalParameters
- The params which are optional to respondprotected InfoRequest(java.lang.String networkId, long deviceNodeId, java.lang.String messageText, java.util.List<Parameter<InfoRequest.Value>> mandatoryParameters, java.util.List<Parameter<InfoRequest.Value>> optionalParameters)
networkId
- The network to which the device belongs will responddeviceNodeId
- The device which has to respond to this requestmessageText
- The message that has to be passed along with the requestmandatoryParameters
- The params which must be respondedoptionalParameters
- The params which are optional to respondprotected InfoRequest(java.lang.String networkId, long deviceNodeId, java.lang.String messageText, long timeout, java.util.List<Parameter<InfoRequest.Value>> mandatoryParameters, java.util.List<Parameter<InfoRequest.Value>> optionalParameters)
networkId
- The network to which the device belongs will responddeviceNodeId
- The device which has to respond to this requestmessageText
- The message that has to be passed along with the requesttimeout
- The timeout after which the command will return failmandatoryParameters
- The params which must be respondedoptionalParameters
- The params which are optional to respondpublic Device getDevice()
public long getCmdSeqNum()
public long getRequestId()
public Command.State getState()
public Parameter.Key[] mandatoryKeys()
public Parameter.Key[] optionalKeys()
public long getTimeout()
public void setTimeout(long timeout)
protected com.google.gson.JsonElement toJson()