CommandResponse
class CommandResponse : BroadcastInfoResponse, Parcelable
A response for command from broadcast signal.
Summary
Public methods |
Int |
|
String? |
Gets the response of the command.
|
String |
Gets the type of the command response.
|
Unit |
Flatten this object in to a Parcel.
|
Inherited functions |
From class BroadcastInfoResponse
Int |
getRequestId()
Gets the ID of the request.
The ID is used to associate the response with the request.
|
Int |
getResponseResult()
Gets the result for the response.
|
Int |
getSequence()
Gets the sequence number which indicates the order of related responses.
|
Int |
getType()
Gets the broadcast info type.
The type indicates what broadcast information is requested, such as broadcast table, PES (packetized Elementary Stream), TS (transport stream), etc. The type of the request and the related responses should be the same.
|
|
Constants
RESPONSE_TYPE_JSON
static val RESPONSE_TYPE_JSON: String
Value: "json"
RESPONSE_TYPE_XML
static val RESPONSE_TYPE_XML: String
Value: "xml"
Public constructors
CommandResponse
CommandResponse(
requestId: Int,
sequence: Int,
responseResult: Int,
response: String?,
responseType: String)
Public methods
describeContents
fun describeContents(): Int
getResponse
fun getResponse(): String?
Gets the response of the command. It could be serialized from some formats, such as JSON, XML, etc.
Return |
String? |
This value may be null . |
getResponseType
fun getResponseType(): String
Gets the type of the command response. It could be either JSON or XML.
Return |
String |
This value cannot be null . |
writeToParcel
fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
Flatten this object in to a Parcel.
Properties
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[]]