member_webapp/@overflow/meta/store/entity/meta-member-status/meta-member-status.action.ts
crusader 10e14d5edb ing
2018-05-29 19:17:16 +09:00

34 lines
893 B
TypeScript

import { Action } from '@ngrx/store';
import { RPCClientError } from '@loafer/ng-rpc';
import { NoAuthProbe } from '@overflow/commons-typescript/model/noauth';
import { MetaMemberStatus } from '@overflow/commons-typescript/model/meta';
export enum ActionType {
ReadAll = '[meta.meta-member-status] ReadAll',
ReadAllSuccess = '[meta.meta-member-status] ReadAllSuccess',
ReadAllFailure = '[meta.meta-member-status] ReadAllFailure',
}
export class ReadAll implements Action {
readonly type = ActionType.ReadAll;
}
export class ReadAllSuccess implements Action {
readonly type = ActionType.ReadAllSuccess;
constructor(public payload: MetaMemberStatus[]) {}
}
export class ReadAllFailure implements Action {
readonly type = ActionType.ReadAllFailure;
constructor(public payload: RPCClientError) {}
}
export type Actions =
| ReadAll
| ReadAllSuccess
| ReadAllFailure
;