2018-03-15 01:29:40 +00:00
|
|
|
import * as plugins from './smartsocket.plugins';
|
|
|
|
import { SocketFunction } from './smartsocket.classes.socketfunction';
|
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;
|
2018-03-15 01:29:40 +00:00
|
|
|
allowedFunctions: plugins.lik.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
|
|
|
}
|