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