Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

Class FuelRange

Hierarchy

java.lang.Object
     com.smartdevicelink.proxy.RPCStruct

Package
com.smartdevicelink.proxy.rpc

Fields

KEY_TYPE

public static final java.lang.String KEY_TYPE
Constant Value
"type"

KEY_RANGE

public static final java.lang.String KEY_RANGE
Constant Value
"range"

Inherited Fields

From Class Fields
com.smartdevicelink.proxy.RPCStruct KEY_BULK_DATA, KEY_PROTECTED, store

Constructors

FuelRange()

Constructs a new FuelRange object

public FuelRange()

FuelRange( java.util.Hashtable<java.lang.String, java.lang.Object> hash )

Constructs a new FuelRange object indicated by the Hashtable parameter

public FuelRange(java.util.Hashtable<java.lang.String, java.lang.Object> hash)

Parameters

hash
The Hashtable to use

Methods

setType( FuelType fuelType )

Sets the type portion of the FuelRange class

public void setType(FuelType fuelType)

Parameters

fuelType

getType()

Gets the type portion of the FuelRange class

public com.smartdevicelink.proxy.rpc.enums.FuelType getType()

getRange()

Gets the range portion of the FuelRange class

public java.lang.Float getRange()

setRange( Float range )

Sets the range portion of the FuelRange class

public void setRange(Float range)

Parameters

range
The estimate range in KM the vehicle can travel based on fuel level and consumption.

Inherited Methods

From Class Methods
com.smartdevicelink.proxy.RPCStruct getStoreValue, getStore, deserializeJSON, deserializeJSONObject, serializeJSON, serializeJSON, format, getBulkData, setBulkData, setPayloadProtected, isPayloadProtected, getMessageTypeName, hasKey, setValue, getValue, getObject, formatObject, getValueForString, getString, getInteger, getDouble, getFloat, getBoolean, getLong
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section