Converted existing code to use platform agnostic device definitions.
This commit is contained in:
@ -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> {
|
||||
|
Reference in New Issue
Block a user