smartsocket/dist/smartsocket.classes.socketrole.js

21 lines
1.3 KiB
JavaScript
Raw Normal View History

2016-08-07 16:59:39 +00:00
"use strict";
2016-08-09 09:42:21 +00:00
// import classes
const lik_1 = require("lik");
exports.allSocketRoles = new lik_1.Objectmap();
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-09 09:42:21 +00:00
exports.allSocketRoles.add(this);
2016-08-07 16:59:39 +00:00
}
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;
2016-08-09 09:42:21 +00:00
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRzb2NrZXQuY2xhc3Nlcy5zb2NrZXRyb2xlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRzb2NrZXQuY2xhc3Nlcy5zb2NrZXRyb2xlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFFQSxpQkFBaUI7QUFDakIsc0JBQTBCLEtBQUssQ0FBQyxDQUFBO0FBSXJCLHNCQUFjLEdBQUcsSUFBSSxlQUFTLEVBQWMsQ0FBQztBQVd4RDs7R0FFRztBQUNIO0lBSUksWUFBWSxVQUE2QjtRQUR6QyxxQkFBZ0IsR0FBRyxJQUFJLGVBQVMsRUFBa0IsQ0FBQztRQUUvQyxJQUFJLENBQUMsSUFBSSxHQUFHLFVBQVUsQ0FBQyxJQUFJLENBQUM7UUFDNUIsSUFBSSxDQUFDLFlBQVksR0FBRyxVQUFVLENBQUMsWUFBWSxDQUFDO1FBQzVDLHNCQUFjLENBQUMsR0FBRyxDQUFDLElBQUksQ0FBQyxDQUFDO0lBQzdCLENBQUM7O0lBQ0QsaUJBQWlCLENBQUMsaUJBQWdDO1FBQzlDLElBQUksQ0FBQyxnQkFBZ0IsQ0FBQyxHQUFHLENBQUMsaUJBQWlCLENBQUMsQ0FBQztJQUNqRCxDQUFDO0FBQ0wsQ0FBQztBQVpZLGtCQUFVLGFBWXRCLENBQUEifQ==