import { EPALCLASSES_SAVE } from '../constants'; import { EPALCLASSES_INIT } from '../constants'; import { Injectable } from '@angular/core'; import { NgRedux } from '@angular-redux/store'; import { IAppState } from '../store'; @Injectable() export class EpalClassesActions { constructor( private _ngRedux: NgRedux) {} saveEpalClassesSelected = (epalClasses) => { return this._ngRedux.dispatch({ type: EPALCLASSES_SAVE, payload: { epalClasses } }); }; initEpalClasses = () => { return this._ngRedux.dispatch({ type: EPALCLASSES_INIT, payload: { } }); }; }