smartsocket/dist/smartsocket.classes.socketrole.js

19 lines
1.2 KiB
JavaScript
Raw Normal View History

2016-08-07 16:59:39 +00:00
"use strict";
2017-07-07 20:02:19 +00:00
Object.defineProperty(exports, "__esModule", { value: true });
2016-08-09 09:42:21 +00:00
// import classes
const lik_1 = require("lik");
2016-08-07 16:59:39 +00:00
/**
* A socketrole defines access to certain routines.
*/
class SocketRole {
constructor(optionsArg) {
2016-08-09 09:42:21 +00:00
this.allowedFunctions = new lik_1.Objectmap();
2016-08-07 16:59:39 +00:00
this.name = optionsArg.name;
this.passwordHash = optionsArg.passwordHash;
}
2016-08-08 16:20:00 +00:00
addSocketFunction(socketFunctionArg) {
2016-08-09 09:42:21 +00:00
this.allowedFunctions.add(socketFunctionArg);
2016-08-08 16:20:00 +00:00
}
2016-08-07 16:59:39 +00:00
}
exports.SocketRole = SocketRole;
2018-03-15 01:29:40 +00:00
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRzb2NrZXQuY2xhc3Nlcy5zb2NrZXRyb2xlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRzb2NrZXQuY2xhc3Nlcy5zb2NrZXRyb2xlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBRUEsaUJBQWlCO0FBQ2pCLDZCQUFnQztBQVdoQzs7R0FFRztBQUNIO0lBSUUsWUFBWSxVQUE2QjtRQUR6QyxxQkFBZ0IsR0FBRyxJQUFJLGVBQVMsRUFBa0IsQ0FBQztRQUVqRCxJQUFJLENBQUMsSUFBSSxHQUFHLFVBQVUsQ0FBQyxJQUFJLENBQUM7UUFDNUIsSUFBSSxDQUFDLFlBQVksR0FBRyxVQUFVLENBQUMsWUFBWSxDQUFDO0lBQzlDLENBQUM7SUFDRCxpQkFBaUIsQ0FBQyxpQkFBaUM7UUFDakQsSUFBSSxDQUFDLGdCQUFnQixDQUFDLEdBQUcsQ0FBQyxpQkFBaUIsQ0FBQyxDQUFDO0lBQy9DLENBQUM7Q0FDRjtBQVhELGdDQVdDIn0=