import { Action } from '@ngrx/store' ; import { IUser } from '../../models/user.interface' ; export enum EUserActions { GetUsers = '[User] Get Users' , GetUsersSuccess = '[User] Get Users Success' , GetUser = '[User] Get User' , GetUserSuccess = '[User] Get User Success' } export class GetUsers implements Action { public readonly type = EUserActions . GetUsers ; } export class GetUsersSuccess implements Action { public readonly type = EUserActions . GetUsersSuccess ; constructor ( public payload ) { } } export class GetUser implements Action { public readonly type = EUserActions . GetUser ; constructor ( public payload ) { } } export class GetUserSuccess implements Action { public readonly type = EUserActions . GetUserSuccess ; constructor ( public payload ) { } } export type UserActions = GetUsers | GetUsersSuccess | GetUser | GetUserSuccess ;