Added device emit option for debugging purposes
This commit is contained in:
11
src/Models/Config/IActivity.ts
Normal file
11
src/Models/Config/IActivity.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import { IDeviceSetupItem } from './IDeviceSetupItem';
|
||||
|
||||
export interface IActivity {
|
||||
OutputDevice: string;
|
||||
VolumeDevice: string;
|
||||
ControlDevice: string;
|
||||
DisplayName: string;
|
||||
DeviceSetupList: Array<IDeviceSetupItem>;
|
||||
UseMatrix: boolean;
|
||||
|
||||
}
|
16
src/Models/Config/IConfig.ts
Normal file
16
src/Models/Config/IConfig.ts
Normal file
@ -0,0 +1,16 @@
|
||||
import { IMatrix } from "./IMatrix";
|
||||
import { IActivity } from "./IActivity";
|
||||
import { IDeviceButton } from "./IDeviceButton";
|
||||
|
||||
export interface IControlUnit {
|
||||
DisplayName: string;
|
||||
Activities: Array<IActivity>;
|
||||
}
|
||||
|
||||
export interface IConfig {
|
||||
hubIp: string;
|
||||
EmitDevicesOnStartup: boolean,
|
||||
Matrix: IMatrix
|
||||
ControlUnits: Array<IControlUnit>
|
||||
DeviceButtons: Array<IDeviceButton>
|
||||
}
|
6
src/Models/Config/IDeviceButton.ts
Normal file
6
src/Models/Config/IDeviceButton.ts
Normal file
@ -0,0 +1,6 @@
|
||||
export interface IDeviceButton {
|
||||
DeviceName: string;
|
||||
ButtonName: string;
|
||||
DisplayName: string;
|
||||
IsStateful: boolean;
|
||||
}
|
5
src/Models/Config/IDeviceSetupItem.ts
Normal file
5
src/Models/Config/IDeviceSetupItem.ts
Normal file
@ -0,0 +1,5 @@
|
||||
|
||||
export interface IDeviceSetupItem {
|
||||
DeviceName: string;
|
||||
Input: string;
|
||||
}
|
15
src/Models/Config/IMatrix.ts
Normal file
15
src/Models/Config/IMatrix.ts
Normal file
@ -0,0 +1,15 @@
|
||||
export interface IInput {
|
||||
InputNumber: string,
|
||||
InputDevice: string,
|
||||
}
|
||||
|
||||
export interface IOutput {
|
||||
OutputLetter: string,
|
||||
OutputDevice: string,
|
||||
}
|
||||
|
||||
export interface IMatrix {
|
||||
Inputs: Array<IInput>;
|
||||
Outputs: Array<IOutput>;
|
||||
DeviceName: string;
|
||||
}
|
Reference in New Issue
Block a user