node-poweredup/port.ts
2018-06-21 09:29:16 +01:00

25 lines
481 B
TypeScript

import * as Consts from "./consts";
export class Port {
public id: string;
public value: number;
public connected: boolean;
public type: Consts.Devices;
public busy: boolean;
public finished: (() => void) | null;
constructor (id: string, value: number) {
this.id = id;
this.value = value;
this.connected = false;
this.busy = false;
this.finished = null;
this.type = Consts.Devices.UNKNOWN;
}
}