public class DiagnosticResponse extends DiagnosticMessage
Modifier and Type | Class and Description |
---|---|
static class |
DiagnosticResponse.NegativeResponseCode |
VehicleMessage.Listener
BUS_KEY, BUS_RANGE, ID_KEY, MODE_KEY, MODE_RANGE, PAYLOAD_KEY, PID_KEY
CREATOR, EXTRAS_KEY
Modifier | Constructor and Description |
---|---|
protected |
DiagnosticResponse() |
|
DiagnosticResponse(int busId,
int id,
int mode) |
|
DiagnosticResponse(int busId,
int id,
int mode,
int pid,
byte[] payload) |
|
DiagnosticResponse(int busId,
int id,
int mode,
int pid,
byte[] payload,
DiagnosticResponse.NegativeResponseCode negativeResponseCode,
double value) |
protected |
DiagnosticResponse(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) |
DiagnosticResponse.NegativeResponseCode |
getNegativeResponseCode() |
java.lang.Double |
getValue() |
boolean |
hasValue() |
boolean |
isSuccessful() |
protected void |
readFromParcel(android.os.Parcel in) |
void |
setNegativeResponseCode(DiagnosticResponse.NegativeResponseCode code) |
void |
setValue(java.lang.Double value) |
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel out,
int flags) |
getBusId, getId, getKey, getMode, getPayload, getPid, hasPayload, hasPid, setPayload, setPid
setKey
asCanMessage, asCommandResponse, asDiagnosticRequest, asDiagnosticResponse, asEventedMessage, asKeyedMessage, asNamedMessage, asSimpleMessage, compareTo, describeContents, getDate, getExtras, getTimestamp, hasExtras, isTimestamped, setExtras, setTimestamp, timestamp, untimestamp
public DiagnosticResponse(int busId, int id, int mode)
public DiagnosticResponse(int busId, int id, int mode, int pid, byte[] payload)
public DiagnosticResponse(int busId, int id, int mode, int pid, byte[] payload, DiagnosticResponse.NegativeResponseCode negativeResponseCode, double value)
protected DiagnosticResponse(android.os.Parcel in)
protected DiagnosticResponse()
public boolean isSuccessful()
public boolean hasValue()
public java.lang.Double getValue()
public void setValue(java.lang.Double value)
public DiagnosticResponse.NegativeResponseCode getNegativeResponseCode()
public void setNegativeResponseCode(DiagnosticResponse.NegativeResponseCode code)
public java.lang.String toString()
toString
in class VehicleMessage
public static boolean containsRequiredFields(java.util.Set<java.lang.String> fields)
public boolean equals(java.lang.Object obj)
equals
in class DiagnosticMessage
public void writeToParcel(android.os.Parcel out, int flags)
writeToParcel
in interface android.os.Parcelable
writeToParcel
in class DiagnosticMessage
protected void readFromParcel(android.os.Parcel in)
readFromParcel
in class DiagnosticMessage