import { IUserIdentity } from '../../../../index' ; import { injectable } from 'inversify' ; export abstract class IRoleService { abstract getRole ( ) ; abstract getLoggedIn ( ) ; } @ injectable ( ) export class RoleService implements IRoleService { constructor ( private userIdentity ) { } getRole ( ) { return this . userIdentity . get ( 'role' ) ; } getLoggedIn ( ) { return this . userIdentity . get ( 'loggedIn' ) ; } }