2021-01-22 15:49:02 +01:00
|
|
|
class SceneStep {
|
2021-03-31 20:04:45 +02:00
|
|
|
/**
|
|
|
|
|
* @param {import("./types/ApiSite").SceneStep} step
|
|
|
|
|
*/
|
2021-01-22 15:49:02 +01:00
|
|
|
constructor(step) {
|
|
|
|
|
this.sceneId = step.sceneId;
|
|
|
|
|
this.deviceId = step.deviceId;
|
2021-03-31 20:04:45 +02:00
|
|
|
this.output = step.output;
|
2021-01-22 15:49:02 +01:00
|
|
|
this.state = step.state === 'On' ? 1 : 0;
|
|
|
|
|
this.brightness = step.value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
module.exports = SceneStep;
|