member_webapp/@overflow/meta/store/entity/meta-noauth-probe-status/meta-noauth-probe-status.action.ts

34 lines
921 B
TypeScript
Raw Normal View History

2018-04-06 11:02:18 +00:00
import { Action } from '@ngrx/store';
2018-05-24 06:44:13 +00:00
import { RPCClientError } from '@loafer/ng-rpc';
2018-05-29 10:17:16 +00:00
import { NoAuthProbe } from '@overflow/commons-typescript/model/noauth';
import { MetaNoAuthProbeStatus } from '@overflow/commons-typescript/model/meta';
2018-04-06 11:02:18 +00:00
export enum ActionType {
2018-05-29 10:17:16 +00:00
ReadAll = '[meta.meta-noauth-probe-status] ReadAll',
ReadAllSuccess = '[meta.meta-noauth-probe-status] ReadAllSuccess',
ReadAllFailure = '[meta.meta-noauth-probe-status] ReadAllFailure',
2018-04-06 11:02:18 +00:00
}
export class ReadAll implements Action {
readonly type = ActionType.ReadAll;
}
export class ReadAllSuccess implements Action {
readonly type = ActionType.ReadAllSuccess;
2018-05-29 10:17:16 +00:00
constructor(public payload: MetaNoAuthProbeStatus[]) {}
2018-04-06 11:02:18 +00:00
}
export class ReadAllFailure implements Action {
readonly type = ActionType.ReadAllFailure;
constructor(public payload: RPCClientError) {}
}
export type Actions =
| ReadAll
| ReadAllSuccess
| ReadAllFailure
;