Class State

java.lang.Object
io.github.zeroone3010.yahueapi.State

public final class State
extends java.lang.Object
  • Field Details

  • Method Details

    • getOn

      public java.lang.Boolean getOn()
    • getBri

      public java.lang.Integer getBri()
    • getXy

      public java.util.List<java.lang.Float> getXy()
    • getHue

      public java.lang.Integer getHue()
    • getSat

      public java.lang.Integer getSat()
    • getCt

      public java.lang.Integer getCt()
    • getTransitiontime

      public java.lang.Integer getTransitiontime()
    • getScene

      public java.lang.String getScene()
      The id of the scene that this state will activate. Note that the API does not populate this value when you get the state of a light or a room. This means that unless you created this State object manually, this value will always be null.
      Returns:
      Id of a scene, or null if this object was received from an actual Light object.
      Since:
      1.3.0
    • getAlert

      public AlertType getAlert()
      The latest alert command issued. Does not automatically reset to AlertType.NONE when the alert ends.
      Returns:
      Latest alert command issued.
      Since:
      2.1.0
    • getEffect

      public EffectType getEffect()
      The latest effect command issued. Does not automatically reset to EffectType.NONE when the effect ends.
      Returns:
      Latest effect command issued.
      Since:
      2.3.0
    • builder

      public static StateBuilderSteps.InitialStep builder()
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object