public class CommandResponse extends KeyedMessage
VehicleMessage.ListenerCREATOR, EXTRAS_KEY| Modifier | Constructor and Description |
|---|---|
protected |
CommandResponse() |
|
CommandResponse(Command.CommandType command,
boolean status) |
|
CommandResponse(Command.CommandType command,
boolean status,
java.lang.String message) |
protected |
CommandResponse(android.os.Parcel in) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsRequiredFields(java.util.Set<java.lang.String> fields) |
boolean |
equals(java.lang.Object obj) |
Command.CommandType |
getCommand() |
MessageKey |
getKey()
Return the identifying key for this message.
|
java.lang.String |
getMessage() |
boolean |
getStatus() |
boolean |
hasMessage() |
protected void |
readFromParcel(android.os.Parcel in) |
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel out,
int flags) |
setKeyasCanMessage, asCommandResponse, asDiagnosticRequest, asDiagnosticResponse, asEventedMessage, asKeyedMessage, asNamedMessage, asSimpleMessage, compareTo, describeContents, getDate, getExtras, getTimestamp, hasExtras, isTimestamped, setExtras, setTimestamp, timestamp, untimestamppublic CommandResponse(Command.CommandType command, boolean status, java.lang.String message)
public CommandResponse(Command.CommandType command, boolean status)
protected CommandResponse(android.os.Parcel in)
protected CommandResponse()
public boolean hasMessage()
public java.lang.String getMessage()
public Command.CommandType getCommand()
public boolean getStatus()
public boolean equals(java.lang.Object obj)
equals in class VehicleMessagepublic java.lang.String toString()
toString in class VehicleMessagepublic MessageKey getKey()
KeyedMessagegetKey in class KeyedMessagepublic static boolean containsRequiredFields(java.util.Set<java.lang.String> fields)
public void writeToParcel(android.os.Parcel out,
int flags)
writeToParcel in interface android.os.ParcelablewriteToParcel in class VehicleMessageprotected void readFromParcel(android.os.Parcel in)
readFromParcel in class VehicleMessage