java.lang.Object
io.github.zeroone3010.yahueapi.v2.domain.update.Dynamics

public class Dynamics
extends Object
  • Constructor Details

  • Method Details

    • getDuration

      public int getDuration()
    • setDuration

      public Dynamics setDuration​(int durationInMilliseconds)
      Sets the durationInMilliseconds of a light transition or timed effects in milliseconds.
      Parameters:
      durationInMilliseconds - Number of milliseconds.
      Returns:
      Self, so that one can also use this method like a fluent builder.
    • getSpeed

      public float getSpeed()
    • setSpeed

      public Dynamics setSpeed​(float speed)
      Speed of dynamic palette or effect.
      Parameters:
      speed - A value between 0 and 1.
      Returns:
      Self, so that one can also use this method like a fluent builder.
    • toString

      public String toString()
      Overrides:
      toString in class Object