Converted existing code to use platform agnostic device definitions.

This commit is contained in:
watsonb8
2019-07-29 12:05:30 -04:00
parent a539287b9e
commit 31c5c5b9e2
7 changed files with 237 additions and 171 deletions

View File

@ -1,7 +1,10 @@
import { hub } from "..";
export interface IMatrixProps {
inputs: Array<Input>,
outputs: Array<Output>,
deviceName: string,
hub: hub
}
export interface Input {
@ -21,11 +24,13 @@ export class Matrix {
private _inputs: Array<Input> = [];
private _outputs: Array<Output> = [];
private _deviceName: string;
private _hub: hub = "Harmony";
constructor(props: IMatrixProps) {
this._inputs = props.inputs;
this._outputs = props.outputs;
this._deviceName = props.deviceName;
this._hub = props.hub;
}
public get inputs(): Array<Input> {