2016-08-09 09:42:21 +00:00
|
|
|
import { Objectmap } from "lik";
|
2016-08-08 16:20:00 +00:00
|
|
|
import { SocketFunction } from "./smartsocket.classes.socketfunction";
|
2016-08-09 09:42:21 +00:00
|
|
|
export declare let allSocketRoles: Objectmap<SocketRole>;
|
2016-08-07 16:59:39 +00:00
|
|
|
/**
|
|
|
|
* interface for class SocketRole
|
|
|
|
*/
|
|
|
|
export interface SocketRoleOptions {
|
|
|
|
name: string;
|
|
|
|
passwordHash: string;
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* A socketrole defines access to certain routines.
|
|
|
|
*/
|
|
|
|
export declare class SocketRole {
|
|
|
|
name: string;
|
|
|
|
passwordHash: string;
|
2016-08-09 09:42:21 +00:00
|
|
|
allowedFunctions: Objectmap<SocketFunction>;
|
2016-08-07 16:59:39 +00:00
|
|
|
constructor(optionsArg: SocketRoleOptions);
|
2016-08-08 16:20:00 +00:00
|
|
|
addSocketFunction(socketFunctionArg: SocketFunction): void;
|
2016-08-07 16:59:39 +00:00
|
|
|
}
|