isy-nodejs
Version:
Node.js wrapper for ISY interface including websockets for change notifications. Fork of isy-js by Rod Toll. Designed to be used in a node.js application.
23 lines (18 loc) • 328 B
text/typescript
export enum OnLevelRelay {
Off = 0,
On = 100
}
export namespace OnLevelRelay {
export const to =
{
Boolean(value: OnLevelRelay): boolean {
return value === OnLevelRelay.On;
}
}
export const from =
{
Boolean(value: boolean): OnLevelRelay {
return value ? OnLevelRelay.On : OnLevelRelay.Off;
}
}
}