This commit is contained in:
parent
c65853220e
commit
4fd9341cea
@ -1,11 +1,11 @@
|
|||||||
import { PlatformAccessory, RemoteController, Service } from "homebridge";
|
import { PlatformAccessory, RemoteController, Service } from "homebridge";
|
||||||
import HarmonyDataProvider from "../DataProviders/harmonyDataProvider";
|
import HarmonyDataProvider from "../dataProviders/harmonyDataProvider";
|
||||||
import { IActivity } from "../Models/Config";
|
import { IActivity } from "../models/config";
|
||||||
import { Platform } from "../platform";
|
import { Platform } from "../platform";
|
||||||
import { ActivityService } from "../Services/activityService";
|
import { ActivityService } from "../services/activityService";
|
||||||
import { CommandService } from "../Services/commandService";
|
import { CommandService } from "../services/commandService";
|
||||||
import { VolumeService } from "../Services/volumeService";
|
import { VolumeService } from "../services/volumeService";
|
||||||
import callbackify from "../Util/callbackify";
|
import callbackify from "../util/callbackify";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enum describing remote key presses from homebridge.
|
* Enum describing remote key presses from homebridge.
|
@ -1,7 +1,7 @@
|
|||||||
import { PlatformAccessory, Service } from "homebridge";
|
import { PlatformAccessory, Service } from "homebridge";
|
||||||
import HarmonyDataProvider from "../DataProviders/harmonyDataProvider";
|
import HarmonyDataProvider from "../dataProviders/harmonyDataProvider";
|
||||||
import { IDeviceButton } from "../Models/Config";
|
import { IDeviceButton } from "../models/config";
|
||||||
import { HarmonyDevice } from "../Models/harmonyDevice";
|
import { HarmonyDevice } from "../models/harmonyDevice";
|
||||||
import { Platform } from "../platform";
|
import { Platform } from "../platform";
|
||||||
|
|
||||||
export class DeviceButton {
|
export class DeviceButton {
|
@ -5,11 +5,11 @@ import {
|
|||||||
PlatformAccessory,
|
PlatformAccessory,
|
||||||
Service,
|
Service,
|
||||||
} from "homebridge";
|
} from "homebridge";
|
||||||
import HarmonyDataProvider from "../DataProviders/harmonyDataProvider";
|
import HarmonyDataProvider from "../dataProviders/harmonyDataProvider";
|
||||||
import { ISequence } from "../Models/Config/sequence";
|
import { ISequence } from "../models/config/sequence";
|
||||||
import { HarmonyDevice } from "../Models/harmonyDevice";
|
import { HarmonyDevice } from "../models/harmonyDevice";
|
||||||
import { Platform } from "../platform";
|
import { Platform } from "../platform";
|
||||||
import { sleep } from "../Util";
|
import { sleep } from "../util";
|
||||||
|
|
||||||
export class Sequence {
|
export class Sequence {
|
||||||
private _devices: { [deviceName: string]: HarmonyDevice };
|
private _devices: { [deviceName: string]: HarmonyDevice };
|
@ -1,13 +1,13 @@
|
|||||||
import { IActivity } from "../Models/Config/activity";
|
import { IActivity } from "../models/config/activity";
|
||||||
import { IDeviceSetupItem } from "../Models/Config/deviceSetupItem";
|
import { IDeviceSetupItem } from "../models/config/deviceSetupItem";
|
||||||
import { IInput, IMatrix, IOutput } from "../Models/Config/matrix";
|
import { IInput, IMatrix, IOutput } from "../models/config/matrix";
|
||||||
import { RemoteKey } from "../Accessories/controlUnit";
|
import { RemoteKey } from "../accessories/controlUnit";
|
||||||
import { EventEmitter } from "events";
|
import { EventEmitter } from "events";
|
||||||
import { IHub } from "../Models/Config/hub";
|
import { IHub } from "../models/config/hub";
|
||||||
import { IDeviceConfig } from "../Models/Config/deviceConfig";
|
import { IDeviceConfig } from "../models/config/deviceConfig";
|
||||||
import { HarmonyDevice } from "../Models/harmonyDevice";
|
import { HarmonyDevice } from "../models/harmonyDevice";
|
||||||
import { HarmonyHub } from "../Models/harmonyHub";
|
import { HarmonyHub } from "../models/harmonyHub";
|
||||||
import { IConfig } from "../Models/Config";
|
import { IConfig } from "../models/config";
|
||||||
import { inject, injectable } from "tsyringe";
|
import { inject, injectable } from "tsyringe";
|
||||||
import { Logger, Logging } from "homebridge";
|
import { Logger, Logging } from "homebridge";
|
||||||
|
|
@ -1,10 +1,10 @@
|
|||||||
import { Logging } from "homebridge";
|
import { Logging } from "homebridge";
|
||||||
import { inject } from "tsyringe";
|
import { inject } from "tsyringe";
|
||||||
import { IConfig, IMatrix } from "../Models/Config";
|
import { IConfig, IMatrix } from "../models/config";
|
||||||
import { IDeviceConfig } from "../Models/Config/deviceConfig";
|
import { IDeviceConfig } from "../models/config/deviceConfig";
|
||||||
import { IHub } from "../Models/Config/hub";
|
import { IHub } from "../models/config/hub";
|
||||||
import { HarmonyDevice } from "../Models/harmonyDevice";
|
import { HarmonyDevice } from "../models/harmonyDevice";
|
||||||
import { HarmonyHub } from "../Models/harmonyHub";
|
import { HarmonyHub } from "../models/harmonyHub";
|
||||||
|
|
||||||
export class HarmonyDataProvider2 {
|
export class HarmonyDataProvider2 {
|
||||||
private _matrix: IMatrix;
|
private _matrix: IMatrix;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { inject, injectable } from "tsyringe";
|
import { inject, injectable } from "tsyringe";
|
||||||
import { IActivityState } from "../Models/activityState";
|
import { IActivityState } from "../models/activityState";
|
||||||
import { IActivity } from "../Models/Config";
|
import { IActivity } from "../models/config";
|
||||||
|
|
||||||
@injectable()
|
@injectable()
|
||||||
export class StateDataProvider {
|
export class StateDataProvider {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { ICommand } from "./device";
|
import { ICommand } from "./device";
|
||||||
import { sleep } from "../Util/sleep";
|
import { sleep } from "../util/sleep";
|
||||||
|
|
||||||
export interface IHarmonyDeviceProps {
|
export interface IHarmonyDeviceProps {
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { IActivity } from "./Config";
|
import { IActivity } from "./config";
|
||||||
|
|
||||||
export interface IActivityState {
|
export interface IActivityState {
|
||||||
currentActivity: IActivity;
|
currentActivity: IActivity;
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
import { Logging } from "homebridge";
|
import { Logging } from "homebridge";
|
||||||
import { inject, injectable } from "tsyringe";
|
import { inject, injectable } from "tsyringe";
|
||||||
import { HarmonyDataProvider2 } from "../DataProviders/harmonyDataProvider2";
|
import { HarmonyDataProvider2 } from "../dataProviders/harmonyDataProvider2";
|
||||||
import { StateDataProvider } from "../DataProviders/stateDataProvider";
|
import { StateDataProvider } from "../dataProviders/stateDataProvider";
|
||||||
import { IActivityState } from "../Models/activityState";
|
import { IActivityState } from "../models/activityState";
|
||||||
import {
|
import {
|
||||||
IActivity,
|
IActivity,
|
||||||
IConfig,
|
IConfig,
|
||||||
IDeviceSetupItem,
|
IDeviceSetupItem,
|
||||||
IInput,
|
IInput,
|
||||||
IOutput,
|
IOutput,
|
||||||
} from "../Models/Config";
|
} from "../models/config";
|
||||||
import { HarmonyDevice } from "../Models/harmonyDevice";
|
import { HarmonyDevice } from "../models/harmonyDevice";
|
||||||
|
|
||||||
@injectable()
|
@injectable()
|
||||||
export class ActivityService {
|
export class ActivityService {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import { inject } from "tsyringe";
|
import { inject } from "tsyringe";
|
||||||
import { RemoteKey } from "../Accessories/controlUnit";
|
import { RemoteKey } from "../accessories/controlUnit";
|
||||||
import { HarmonyDataProvider2 } from "../DataProviders/harmonyDataProvider2";
|
import { HarmonyDataProvider2 } from "../dataProviders/harmonyDataProvider2";
|
||||||
import { StateDataProvider } from "../DataProviders/stateDataProvider";
|
import { StateDataProvider } from "../dataProviders/stateDataProvider";
|
||||||
import { IConfig } from "../Models/Config";
|
import { IConfig } from "../models/config";
|
||||||
import { HarmonyDevice } from "../Models/harmonyDevice";
|
import { HarmonyDevice } from "../models/harmonyDevice";
|
||||||
|
|
||||||
export class CommandService {
|
export class CommandService {
|
||||||
constructor(
|
constructor(
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import { Logging } from "homebridge";
|
import { Logging } from "homebridge";
|
||||||
import { inject } from "tsyringe";
|
import { inject } from "tsyringe";
|
||||||
import { HarmonyDataProvider2 } from "../DataProviders/harmonyDataProvider2";
|
import { HarmonyDataProvider2 } from "../dataProviders/harmonyDataProvider2";
|
||||||
import { StateDataProvider } from "../DataProviders/stateDataProvider";
|
import { StateDataProvider } from "../dataProviders/stateDataProvider";
|
||||||
import { IConfig } from "../Models/Config";
|
import { IConfig } from "../models/config";
|
||||||
import { HarmonyDevice } from "../Models/harmonyDevice";
|
import { HarmonyDevice } from "../models/harmonyDevice";
|
||||||
|
|
||||||
export class VolumeService {
|
export class VolumeService {
|
||||||
constructor(
|
constructor(
|
||||||
|
@ -8,18 +8,18 @@ import {
|
|||||||
PlatformConfig,
|
PlatformConfig,
|
||||||
Service,
|
Service,
|
||||||
} from "homebridge";
|
} from "homebridge";
|
||||||
import { ControlUnit, DeviceButton } from "./Accessories";
|
import { ControlUnit, DeviceButton } from "./accessories";
|
||||||
import { Sequence } from "./Accessories/sequence";
|
import { Sequence } from "./accessories/sequence";
|
||||||
import HarmonyDataProvider from "./DataProviders/harmonyDataProvider";
|
import HarmonyDataProvider from "./dataProviders/harmonyDataProvider";
|
||||||
import { IConfig, IControlUnit, IDeviceButton } from "./Models/Config";
|
import { IConfig, IControlUnit, IDeviceButton } from "./models/config";
|
||||||
import { ISequence } from "./Models/Config/sequence";
|
import { ISequence } from "./models/config/sequence";
|
||||||
import { PLATFORM_NAME, PLUGIN_NAME } from "./settings";
|
import { PLATFORM_NAME, PLUGIN_NAME } from "./settings";
|
||||||
import { container } from "tsyringe";
|
import { container } from "tsyringe";
|
||||||
import { HarmonyDataProvider2 } from "./DataProviders/harmonyDataProvider2";
|
import { HarmonyDataProvider2 } from "./dataProviders/harmonyDataProvider2";
|
||||||
import { StateDataProvider } from "./DataProviders/stateDataProvider";
|
import { StateDataProvider } from "./dataProviders/stateDataProvider";
|
||||||
import { CommandService } from "./Services/commandService";
|
import { CommandService } from "./services/commandService";
|
||||||
import { ActivityService } from "./Services/activityService";
|
import { ActivityService } from "./services/activityService";
|
||||||
import { VolumeService } from "./Services/volumeService";
|
import { VolumeService } from "./services/volumeService";
|
||||||
|
|
||||||
export class Platform implements DynamicPlatformPlugin {
|
export class Platform implements DynamicPlatformPlugin {
|
||||||
constructor(
|
constructor(
|
||||||
|
Loading…
Reference in New Issue
Block a user