Can successfully start an activity on power on.
This commit is contained in:
@ -48,7 +48,7 @@ export class Activity {
|
||||
/**
|
||||
* The device associated with output.
|
||||
*/
|
||||
public outputDeviceId(): string {
|
||||
public get outputDeviceId(): string {
|
||||
return this._outputDeviceId;
|
||||
};
|
||||
|
||||
@ -59,7 +59,7 @@ export class Activity {
|
||||
return this._displayName;
|
||||
}
|
||||
|
||||
public get deviceSetupItem(): Array<DeviceSetupItem> {
|
||||
public get deviceSetupItems(): Array<DeviceSetupItem> {
|
||||
return this._deviceSetupItems
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
export interface IDeviceSetupItemProps {
|
||||
deviceId: string,
|
||||
deviceName: string,
|
||||
input: string
|
||||
}
|
||||
|
||||
@ -8,11 +8,11 @@ export class DeviceSetupItem {
|
||||
private _deviceId: string = "";
|
||||
private _input: string = "";
|
||||
constructor(props: IDeviceSetupItemProps) {
|
||||
this._deviceId = props.deviceId;
|
||||
this._deviceId = props.deviceName;
|
||||
this._input = props.input;
|
||||
}
|
||||
|
||||
public get deviceId() {
|
||||
public get deviceName() {
|
||||
return this._deviceId;
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
export interface IMatrixProps {
|
||||
inputs: Array<Input>,
|
||||
outputs: Array<Output>,
|
||||
deviceName: string,
|
||||
}
|
||||
|
||||
export interface Input {
|
||||
@ -16,10 +17,12 @@ export interface Output {
|
||||
export class Matrix {
|
||||
private _inputs: Array<Input> = [];
|
||||
private _outputs: Array<Output> = [];
|
||||
private _deviceName: string;
|
||||
|
||||
constructor(props: IMatrixProps) {
|
||||
this._inputs = props.inputs;
|
||||
this._outputs = props.outputs;
|
||||
this._deviceName = props.deviceName;
|
||||
}
|
||||
|
||||
public get inputs(): Array<Input> {
|
||||
@ -29,4 +32,8 @@ export class Matrix {
|
||||
public get outputs(): Array<Output> {
|
||||
return this._outputs;
|
||||
}
|
||||
|
||||
public get deviceName(): string {
|
||||
return this._deviceName;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user