import { Action } from '@ngrx/store' ; import { type } from '../../../shared/util/type' ; export namespace PlayerUnitsActions { export const Types = { GET_PLAYER_UNITS : type ( '[Player Units] Get Player Units' ) , GET_PLAYER_UNITS_SUCCESS : type ( '[Player Units] Get Player Units Success' ) , GET_PLAYER_UNITS_FAILURE : type ( '[Player Units] Get Player Units Failure' ) , } ; export class GetPlayerUnits implements Action { type = Types . GET_PLAYER_UNITS ; payload : any ; constructor ( ) { } } export class GetPlayerUnitsSuccess implements Action { type = Types . GET_PLAYER_UNITS_SUCCESS ; constructor ( public payload ) { } } export class GetPlayerUnitsFailure implements Action { type = Types . GET_PLAYER_UNITS_FAILURE ; constructor ( public payload ) { } } export type Actions = GetPlayerUnits | GetPlayerUnitsSuccess | GetPlayerUnitsFailure ; }