smartsocket/ts/smartsocket.classes.socketrole.ts
2016-08-07 15:37:52 +02:00

22 lines
448 B
TypeScript

import * as plugins from "./smartsocket.plugins";
/**
* interface for class SocketRole
*/
export interface SocketRoleOptions {
name:string;
passwordHash:string;
}
/**
* A socketrole defines access to certain routines.
*/
export class SocketRole {
name:string;
passwordHash:string;
constructor(optionsArg:SocketRoleOptions){
this.name = optionsArg.name;
this.passwordHash = optionsArg.passwordHash;
}
}