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

Class Temperature

Hierarchy

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

Package
com.smartdevicelink.proxy.rpc

Fields

KEY_UNIT

public static final java.lang.String KEY_UNIT
Constant Value
"unit"

KEY_VALUE

public static final java.lang.String KEY_VALUE
Constant Value
"value"

Inherited Fields

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

Constructors

Temperature()

public Temperature()

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

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

Parameters

hash

Temperature( TemperatureUnit unit, Float value )

Create the temperature object

public Temperature(TemperatureUnit unit,Float value)

Parameters

unit
Temperature Unit.
value
Temperature Value in TemperatureUnit specified unit

Methods

setUnit( TemperatureUnit unit )

Sets the unit portion of the Temperature class

public void setUnit(TemperatureUnit unit)

Parameters

unit
Temperature Unit.

getUnit()

Gets the unit portion of the Temperature class

public com.smartdevicelink.proxy.rpc.enums.TemperatureUnit getUnit()

getValue()

Gets the value portion of the Temperature class

public java.lang.Float getValue()

setValue( Float value )

Sets the value portion of the Temperature class

public void setValue(Float value)

Parameters

value
Temperature Value in TemperatureUnit specified unit. Range depends on OEM and is not checked by SDL.

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