Created
June 12, 2018 23:32
-
-
Save jplemieux66/5dc068c1a6cb2820a6bb7679596005a2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Action } from '@ngrx/store'; | |
import { ProjectsDetails } from '../../../shared/model/user-projects-details'; | |
export const LOAD_PROJECTS_DETAILS = '[Projects] Load Projects Details'; | |
export const LOAD_PROJECTS_DETAILS_SUCCESS = '[Projects] Load Projects Details Success'; | |
export const LOAD_PROJECTS_DETAILS_ERROR = '[Projects] Load Projects Details Error'; | |
export class LoadProjectsDetails implements Action { | |
readonly type = LOAD_PROJECTS_DETAILS; | |
constructor(public payload: number) { } | |
} | |
export class LoadProjectsDetailsSuccess implements Action { | |
readonly type = LOAD_PROJECTS_DETAILS_SUCCESS; | |
constructor(public payload: ProjectsDetails) { } | |
} | |
export class LoadProjectsDetailsError implements Action { | |
readonly type = LOAD_PROJECTS_DETAILS_ERROR; | |
constructor(public error: any) { } | |
} | |
export type Actions = LoadProjectsDetails | | |
LoadProjectsDetailsSuccess | | |
LoadProjectsDetailsError; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment