js/example-app/packages/member/store/auth.action.ts

26 lines
633 B
TypeScript
Raw Normal View History

2018-03-17 15:03:13 +00:00
import { Action } from '@ngrx/store';
export enum ActionType {
Signin = '[member.auth] Signin',
SigninSuccess = '[member.auth] SigninSuccess',
SigninFailure = '[member.auth] SigninFailure',
}
export class Signin implements Action {
readonly type = ActionType.Signin;
constructor(public payload: {email: string, password: string, returnURL: string}) {}
}
export class SigninSuccess implements Action {
readonly type = ActionType.SigninSuccess;
constructor(public payload: any) {}
}
export class SigninFailure implements Action {
readonly type = ActionType.SigninFailure;
constructor(public payload: any) {}
}