2018-05-24 06:44:13 +00:00
|
|
|
import { RPCClientError } from '@loafer/ng-rpc';
|
2018-05-02 08:09:39 +00:00
|
|
|
import { Sensor } from '@overflow/commons-typescript/model/sensor';
|
2018-04-18 11:28:53 +00:00
|
|
|
|
2018-05-25 03:09:59 +00:00
|
|
|
export interface State {
|
2018-04-18 11:28:53 +00:00
|
|
|
error: RPCClientError | null;
|
|
|
|
isPending: boolean;
|
|
|
|
sensor: Sensor | null;
|
|
|
|
}
|
2018-05-25 03:09:59 +00:00
|
|
|
|
|
|
|
export const initialState: State = {
|
2018-04-18 11:28:53 +00:00
|
|
|
error: null,
|
|
|
|
isPending: false,
|
|
|
|
sensor: null,
|
2018-05-25 03:09:59 +00:00
|
|
|
};
|