public class CommandResponse extends KeyedMessage
VehicleMessage.Listener
CREATOR, 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) |
setKey
asCanMessage, asCommandResponse, asDiagnosticRequest, asDiagnosticResponse, asEventedMessage, asKeyedMessage, asNamedMessage, asSimpleMessage, compareTo, describeContents, getDate, getExtras, getTimestamp, hasExtras, isTimestamped, setExtras, setTimestamp, timestamp, untimestamp
public 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 VehicleMessage
public java.lang.String toString()
toString
in class VehicleMessage
public MessageKey getKey()
KeyedMessage
getKey
in class KeyedMessage
public static boolean containsRequiredFields(java.util.Set<java.lang.String> fields)
public void writeToParcel(android.os.Parcel out, int flags)
writeToParcel
in interface android.os.Parcelable
writeToParcel
in class VehicleMessage
protected void readFromParcel(android.os.Parcel in)
readFromParcel
in class VehicleMessage