import { Action } from '@ngrx/store' ; import { Product } from '../../../shared/services' ; export enum ProductActionTypes { LoadById = '[Product] Load By ID' , LoadByIdSuccess = '[Product] Load By ID Success' , LoadByIdFailure = '[Product] Load By ID Failure' , LoadSuggested = '[Product] Load Suggested' , LoadSuggestedSuccess = '[Product] Load Suggested Success' } export class LoadById implements Action { readonly type = ProductActionTypes . LoadById ; constructor ( public readonly payload ) { } } export class LoadByIdSuccess implements Action { readonly type = ProductActionTypes . LoadByIdSuccess ; constructor ( public readonly payload ) { } } export class LoadByIdFailure implements Action { readonly type = ProductActionTypes . LoadByIdFailure ; constructor ( public readonly payload ) { } } export class LoadSuggested implements Action { readonly type = ProductActionTypes . LoadSuggested ; constructor ( public readonly payload ) { } } export class LoadSuggestedSuccess implements Action { readonly type = ProductActionTypes . LoadSuggestedSuccess ; constructor ( public readonly payload ) { } } export type ProductActions = LoadById | LoadByIdSuccess | LoadByIdFailure | LoadSuggested | LoadSuggestedSuccess ;