public class DIDResult extends RPCStruct
Parameter List
| Param Name | Type | Mandatory | Additional | Description |
|---|---|---|---|---|
| resultCode | VehicleDataResultCode | true | Individual DID result code | |
| didLocation | Integer | true | minvalue = 0 maxvalue = 65535 | The address of DID location from the ReadDID request. |
| data | String | false | maxlength = 5000 | The DID data which is the hex byte string of however many bytes are stored at that location |
VehicleDataResultCode,
ReadDID| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_DATA |
static String |
KEY_DID_LOCATION |
static String |
KEY_RESULT_CODE |
KEY_BULK_DATA, KEY_PROTECTED, store| Constructor and Description |
|---|
DIDResult() |
DIDResult(Hashtable<String,Object> hash)
Constructs a new DIDResult object indicated by the Hashtable
parameter
|
DIDResult(VehicleDataResultCode resultCode,
Integer didLocation) |
| Modifier and Type | Method and Description |
|---|---|
String |
getData() |
Integer |
getDidLocation() |
VehicleDataResultCode |
getResultCode() |
DIDResult |
setData(String data) |
DIDResult |
setDidLocation(Integer didLocation) |
DIDResult |
setResultCode(VehicleDataResultCode resultCode) |
clone, deserializeJSON, equals, format, formatObject, getBoolean, getBulkData, getDouble, getFloat, getInteger, getLong, getMessageTypeName, getObject, getStore, getStoreValue, getString, getValue, getValueForString, hashCode, hasKey, isPayloadProtected, serializeJSON, serializeJSON, setBulkData, setPayloadProtected, setValuepublic static final String KEY_RESULT_CODE
public static final String KEY_DATA
public static final String KEY_DID_LOCATION
public DIDResult()
public DIDResult(Hashtable<String,Object> hash)
Constructs a new DIDResult object indicated by the Hashtable parameter
hash - The hash table to use to create an instance of this RPCpublic DIDResult(@NonNull
VehicleDataResultCode resultCode,
@NonNull
Integer didLocation)
public DIDResult setResultCode(@NonNull VehicleDataResultCode resultCode)
public VehicleDataResultCode getResultCode()
public Integer getDidLocation()
public String getData()