UNPKG

vtally

Version:

An affordable and reliable Tally Light that works via WiFi based on NodeMCU / ESP8266. Supports multiple video mixers.

23 lines (22 loc) 512 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class Channel { constructor(id, name) { this.id = id.toString(); this.name = name; } toJson() { return { id: this.id, name: this.name, }; } toString() { return this.name || this.id; } } Channel.fromJson = function (valueObject) { const channel = new Channel(valueObject.id, valueObject.name); return channel; }; exports.default = Channel;