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

Class LightState

Hierarchy

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

Package
com.smartdevicelink.proxy.rpc

Fields

KEY_ID

public static final java.lang.String KEY_ID
Constant Value
"id"

KEY_STATUS

public static final java.lang.String KEY_STATUS
Constant Value
"status"

KEY_DENSITY

public static final java.lang.String KEY_DENSITY
Constant Value
"density"

KEY_COLOR

public static final java.lang.String KEY_COLOR
Constant Value
"color"

Inherited Fields

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

Constructors

LightState()

Constructs a new LightState object

public LightState()

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

Constructs a new LightState object indicated by the Hashtable parameter

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

Parameters

hash
The Hashtable to use

LightState( LightName id, LightStatus status )

Constructs a newly allocated LightState object

public LightState(LightName id,LightStatus status)

Parameters

id
The name of a light or a group of lights.
status
Status of Light.

Methods

setId( LightName id )

Sets the id portion of the LightState class

public void setId(LightName id)

Parameters

id
The name of a light or a group of lights.

getId()

Gets the id portion of the LightState class

public com.smartdevicelink.proxy.rpc.enums.LightName getId()

setStatus( LightStatus status )

Sets the status portion of the LightState class

public void setStatus(LightStatus status)

Parameters

status

getStatus()

Gets the status portion of the LightState class

public com.smartdevicelink.proxy.rpc.enums.LightStatus getStatus()

getDensity()

Gets the density portion of the LightState class

public java.lang.Float getDensity()

setDensity( Float density )

Sets the density portion of the LightState class

public void setDensity(Float density)

Parameters

density

getColor()

Gets the color portion of the LightState class

public com.smartdevicelink.proxy.rpc.RGBColor getColor()

setColor( RGBColor color )

Sets the color portion of the LightState class

public void setColor(RGBColor color)

Parameters

color

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