smartsocket/ts/smartsocket.classes.socketrole.ts

25 lines
500 B
TypeScript
Raw Normal View History

2016-08-07 12:58:20 +00:00
import * as plugins from "./smartsocket.plugins";
2016-08-07 16:59:39 +00:00
// import classes
import { Stringmap } from "lik";
2016-08-07 12:58:20 +00:00
/**
2016-08-07 13:37:52 +00:00
* interface for class SocketRole
2016-08-07 12:58:20 +00:00
*/
2016-08-07 13:37:52 +00:00
export interface SocketRoleOptions {
name:string;
passwordHash:string;
}
2016-08-07 12:58:20 +00:00
2016-08-07 13:37:52 +00:00
/**
* 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;
2016-08-07 12:58:20 +00:00
}
}