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");
|
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;
|
2016-09-04 22:34:09 +00:00
|
|
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRzb2NrZXQuY2xhc3Nlcy5zb2NrZXRyb2xlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRzb2NrZXQuY2xhc3Nlcy5zb2NrZXRyb2xlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFFQSxpQkFBaUI7QUFDakIsc0JBQTBCLEtBQUssQ0FBQyxDQUFBO0FBWWhDOztHQUVHO0FBQ0g7SUFJSSxZQUFZLFVBQTZCO1FBRHpDLHFCQUFnQixHQUFHLElBQUksZUFBUyxFQUFrQixDQUFDO1FBRS9DLElBQUksQ0FBQyxJQUFJLEdBQUcsVUFBVSxDQUFDLElBQUksQ0FBQztRQUM1QixJQUFJLENBQUMsWUFBWSxHQUFHLFVBQVUsQ0FBQyxZQUFZLENBQUM7SUFDaEQsQ0FBQzs7SUFDRCxpQkFBaUIsQ0FBQyxpQkFBZ0M7UUFDOUMsSUFBSSxDQUFDLGdCQUFnQixDQUFDLEdBQUcsQ0FBQyxpQkFBaUIsQ0FBQyxDQUFDO0lBQ2pELENBQUM7QUFDTCxDQUFDO0FBWFksa0JBQVUsYUFXdEIsQ0FBQSJ9
|