Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
Android Documentation
Temperature

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)

Constructor Parameters

hash

Temperature( TemperatureUnit unit, Float value )

Create the temperature object

public Temperature(TemperatureUnit unit,Float value)

Constructor Parameters

unit
Temperature Unit.
value
Temperature Value in TemperatureUnit specified unit

Methods

setUnit( TemperatureUnit unit )

Sets the unit portion of the Temperature class

public com.smartdevicelink.proxy.rpc.Temperature setUnit(TemperatureUnit unit)

Method 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 com.smartdevicelink.proxy.rpc.Temperature setValue(Float value)

Method 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, serializeJSON, serializeJSON, format, getBulkData, setBulkData, setPayloadProtected, isPayloadProtected, getMessageTypeName, hasKey, setValue, getValue, getObject, formatObject, getValueForString, getString, getInteger, getDouble, getFloat, getBoolean, getLong, clone, equals, hashCode
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section