UNPKG

934 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.DefaultControllerType = void 0;
4exports.isSerializableController = isSerializableController;
5/**
6 * @group Controller API
7 */
8var DefaultControllerType;
9(function (DefaultControllerType) {
10 DefaultControllerType["CAMERA"] = "camera";
11 DefaultControllerType["REMOTE"] = "remote";
12 DefaultControllerType["TV"] = "tv";
13 DefaultControllerType["ROUTER"] = "router";
14 DefaultControllerType["LOCK"] = "lock";
15 DefaultControllerType["CHARACTERISTIC_TRANSITION"] = "characteristic-transition";
16})(DefaultControllerType || (exports.DefaultControllerType = DefaultControllerType = {}));
17/**
18 * @param controller
19 * @group Controller API
20 */
21function isSerializableController(controller) {
22 return "serialize" in controller && "deserialize" in controller && "setupStateChangeDelegate" in controller;
23}
24//# sourceMappingURL=Controller.js.map
\No newline at end of file