UNPKG

homebridge-config-ui-x

Version:

A web based management, configuration and control platform for Homebridge

20 lines (19 loc) 576 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const ws_paramtype_enum_1 = require("../enums/ws-paramtype.enum"); class WsParamsFactory { exchangeKeyForValue(type, args) { if (!args) { return null; } switch (type) { case ws_paramtype_enum_1.WsParamtype.SOCKET: return args[0]; case ws_paramtype_enum_1.WsParamtype.PAYLOAD: return args[1]; default: return null; } } } exports.WsParamsFactory = WsParamsFactory;