Class Dynamics
java.lang.Object
io.github.zeroone3010.yahueapi.v2.domain.update.Dynamics
public class Dynamics extends Object
-
Constructor Summary
Constructors Constructor Description Dynamics()
-
Method Summary
Modifier and Type Method Description int
getDuration()
float
getSpeed()
Dynamics
setDuration(int durationInMilliseconds)
Sets the durationInMilliseconds of a light transition or timed effects in milliseconds.Dynamics
setSpeed(float speed)
Speed of dynamic palette or effect.String
toString()
-
Constructor Details
-
Dynamics
public Dynamics()
-
-
Method Details
-
getDuration
public int getDuration() -
setDuration
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
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
-