Class LightState
java.lang.Object
io.github.zeroone3010.yahueapi.domain.LightState
public class LightState
extends java.lang.Object
A data transfer object to hold the properties received from the Hue Bridge. Do not try to use this class
to change the state of a light, use
State instead.-
Constructor Summary
Constructors Constructor Description LightState() -
Method Summary
Modifier and Type Method Description java.lang.StringgetAlert()intgetBrightness()java.lang.StringgetColorMode()intgetCt()java.lang.StringgetEffect()intgetHue()java.lang.StringgetMode()intgetSaturation()java.util.List<java.lang.Float>getXy()booleanisOn()booleanisReachable()java.lang.StringtoString()
-
Constructor Details
-
LightState
public LightState()
-
-
Method Details
-
isOn
public boolean isOn() -
getBrightness
public int getBrightness() -
getHue
public int getHue() -
getSaturation
public int getSaturation() -
getEffect
public java.lang.String getEffect() -
getXy
public java.util.List<java.lang.Float> getXy() -
getCt
public int getCt() -
getAlert
public java.lang.String getAlert() -
getColorMode
public java.lang.String getColorMode() -
getMode
public java.lang.String getMode() -
isReachable
public boolean isReachable() -
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-