Code cleanup. Added comments.
This commit is contained in:
@@ -9,6 +9,25 @@ let Characteristic: HAPNodeJS.Characteristic;
|
||||
let Api: any;
|
||||
let homebridge: any;
|
||||
|
||||
/**
|
||||
* Enum describing remote key presses from homebridge.
|
||||
*/
|
||||
export enum RemoteKey {
|
||||
REWIND = 0,
|
||||
FAST_FORWARD = 1,
|
||||
NEXT_TRACK = 2,
|
||||
PREVIOUS_TRACK = 3,
|
||||
ARROW_UP = 4,
|
||||
ARROW_DOWN = 5,
|
||||
ARROW_LEFT = 6,
|
||||
ARROW_RIGHT = 7,
|
||||
SELECT = 8,
|
||||
BACK = 9,
|
||||
EXIT = 10,
|
||||
PLAY_PAUSE = 11,
|
||||
INFORMATION = 15,
|
||||
}
|
||||
|
||||
export interface IControlUnitProps {
|
||||
dataProvider: HarmonyDataProvider,
|
||||
displayName: string,
|
||||
@@ -266,8 +285,6 @@ export class ControlUnit implements IAccessory {
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Called by homebridge to gather services for this accessory.
|
||||
*/
|
||||
|
@@ -1,3 +1,7 @@
|
||||
|
||||
/**
|
||||
* Interface to describe homebridge required elements.
|
||||
*/
|
||||
export interface IAccessory {
|
||||
/**
|
||||
* Required by homebridge.
|
||||
|
Reference in New Issue
Block a user