import { type } from "../util" ; import { Action } from "@ngrx/store" ; export const LOAD = '[Games] load games' ; export const LOAD_SUCCESS = '[Games] successfully loaded games' ; export const LOAD_FAILURE = '[Games] failed to load games' ; export class LoadGamesAction implements Action { readonly type = LOAD ; constructor ( public payload ) { } } export class LoadGamesFailedAction implements Action { readonly type = LOAD_FAILURE ; constructor ( ) { } } export class LoadGamesSuccessAction implements Action { readonly type = LOAD_SUCCESS ; constructor ( public payload ) { } } export type GameActions = LoadGamesAction | LoadGamesFailedAction | LoadGamesSuccessAction ;