"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TestServerState = void 0;
const VideohubState_1 = require("./VideohubState");
const events_1 = require("events");
class TestServerState {
    constructor() {
        this.events = new events_1.EventEmitter();
        this.state = new VideohubState_1.VideohubState();
        this.state.config.inputCount = 72;
        this.state.config.outputCount = 72;
        this.state.setName('psBroadcastIo32');
        //this.state.setDeviceName('Blackmagic Universal Videohub 72')
        this.state.setDeviceName('Blackmagic Enterprise Videohub');
    }
    getConfig() {
        return this.state.config;
    }
    getName() {
        return this.state.name || '';
    }
    getDeviceName() {
        return this.state.deviceName || '';
    }
    getInput(id) {
        return this.state.getInput(id);
    }
    getOutput(id) {
        return this.state.getOutput(id);
    }
    getMonitoringOutput(id) {
        return this.state.getMonitoringOutput(id);
    }
    getSerial(id) {
        return this.state.getSerial(id);
    }
    process(cmd, _clientId) {
        setTimeout(() => this.events.emit('changes', cmd), 10);
        return true;
    }
    onChanges(handler) {
        this.events.on('changes', handler);
    }
}
exports.TestServerState = TestServerState;
//# sourceMappingURL=TestServerState.js.map