Object.defineProperty(exports, "__esModule", { value: true });
var pjlink = require("pjlink");
module.exports = function (Api) {
    Api.registerConnectionValidator('pjlink', function (validatorAPI) {
        var ip = validatorAPI.properties.ip;
        var port = validatorAPI.properties.port;
        var password = validatorAPI.properties.password;
        var beamer = new pjlink(ip, port, password);
        beamer.getClass(function (err, classNumber) {
            if (!err)
                validatorAPI.setInstance(beamer);
            validatorAPI.callback(err == undefined, err == undefined ? null : 'Unable to connect to projector: ' + err);
        });
    });
};
//# sourceMappingURL=main.js.map