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 { MetaProbeOs } 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-probe-os] ReadAll',
|
|
|
|
ReadAllSuccess = '[meta.meta-probe-os] ReadAllSuccess',
|
|
|
|
ReadAllFailure = '[meta.meta-probe-os] 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: MetaProbeOs[]) {}
|
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
|
|
|
|
;
|