smartsocket/dist/smartsocket.classes.socketrole.d.ts

20 lines
530 B
TypeScript
Raw Normal View History

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-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
}