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
Command sequence number.
|
protected long |
deviceNodeId
ID of device to which either request being sent or received.
|
java.util.List<Parameter<InfoRequest.Value>> |
mandatoryParameters
Parameter to which device must respond. |
java.lang.String |
messageText
The message that has to be passed along with the request.
|
protected java.lang.String |
networkId
Network ID of network to which device belongs to.
|
java.util.List<Parameter<InfoRequest.Value>> |
optionalParameters
Parameter to which device might respond. |
protected long |
requestId
ID of this request.
|
protected Command.State |
state
State of this Info request.
|
long |
timeout
Timeout of the request.
|
| 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()
A function to get command sequence number.
|
Device |
getDevice()
A function to get
Device of the info request that was used/will be used. |
long |
getRequestId()
A function to get request ID.
|
Command.State |
getState()
A function to get state of request.
|
long |
getTimeout()
A function to get time out for the request.
|
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)
A function to set time out for request.
|
protected com.google.gson.JsonElement |
toJson()
A function to convert this object into json element.
|
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
Parameter to which device must respond.public final java.util.List<Parameter<InfoRequest.Value>> optionalParameters
Parameter to which device might respond.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()
Device of the info request that was used/will be used.Device.public long getCmdSeqNum()
cmdSeqNum.public long getRequestId()
requestId.public Command.State getState()
state.public Parameter.Key[] mandatoryKeys()
public Parameter.Key[] optionalKeys()
public long getTimeout()
timeout.public void setTimeout(long timeout)
timeout - timeout.protected com.google.gson.JsonElement toJson()