@sprucelabs/spruce-heartwood-utils 29.2.68 → 29.2.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
|
|
1
1
|
import EventEmitter from 'events';
|
2
|
-
import { CachedValue, Device, TheaterSettingValueTypes, TheatreSettingName } from '@sprucelabs/heartwood-view-controllers';
|
2
|
+
import { AudioController, CachedValue, Device, TheaterSettingValueTypes, TheatreSettingName } from '@sprucelabs/heartwood-view-controllers';
|
3
3
|
import { Orientation } from '../types/heartwood.types';
|
4
4
|
export declare class HeartwoodDevice extends EventEmitter implements Device {
|
5
5
|
static Class?: new (storage: Storage) => Device;
|
@@ -7,6 +7,9 @@ export declare class HeartwoodDevice extends EventEmitter implements Device {
|
|
7
7
|
private orientation;
|
8
8
|
private isGettingTheatreSetting;
|
9
9
|
protected constructor(storage: Storage);
|
10
|
+
turnTorchOn(_brightness?: number): void;
|
11
|
+
turnTorchOff(): void;
|
12
|
+
AudioController(): AudioController;
|
10
13
|
openUrl(url: string): void;
|
11
14
|
static Device(storage: Storage): HeartwoodDevice;
|
12
15
|
setCachedValue(key: string, value: CachedValue): void;
|
@@ -13,6 +13,11 @@ class HeartwoodDevice extends events_1.default {
|
|
13
13
|
this.isGettingTheatreSetting = false;
|
14
14
|
this.storage = storage;
|
15
15
|
}
|
16
|
+
turnTorchOn(_brightness) { }
|
17
|
+
turnTorchOff() { }
|
18
|
+
AudioController() {
|
19
|
+
throw new Error('Method not implemented.');
|
20
|
+
}
|
16
21
|
openUrl(url) {
|
17
22
|
void this.sendCommand('openUrl', {
|
18
23
|
url,
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import EventEmitter from 'events';
|
2
|
-
import { CachedValue, Device, TheaterSettingValueTypes, TheatreSettingName } from '@sprucelabs/heartwood-view-controllers';
|
2
|
+
import { AudioController, CachedValue, Device, TheaterSettingValueTypes, TheatreSettingName } from '@sprucelabs/heartwood-view-controllers';
|
3
3
|
import { Orientation } from '../types/heartwood.types';
|
4
4
|
export declare class HeartwoodDevice extends EventEmitter implements Device {
|
5
5
|
static Class?: new (storage: Storage) => Device;
|
@@ -7,6 +7,9 @@ export declare class HeartwoodDevice extends EventEmitter implements Device {
|
|
7
7
|
private orientation;
|
8
8
|
private isGettingTheatreSetting;
|
9
9
|
protected constructor(storage: Storage);
|
10
|
+
turnTorchOn(_brightness?: number): void;
|
11
|
+
turnTorchOff(): void;
|
12
|
+
AudioController(): AudioController;
|
10
13
|
openUrl(url: string): void;
|
11
14
|
static Device(storage: Storage): HeartwoodDevice;
|
12
15
|
setCachedValue(key: string, value: CachedValue): void;
|
@@ -16,6 +16,11 @@ export class HeartwoodDevice extends EventEmitter {
|
|
16
16
|
this.isGettingTheatreSetting = false;
|
17
17
|
this.storage = storage;
|
18
18
|
}
|
19
|
+
turnTorchOn(_brightness) { }
|
20
|
+
turnTorchOff() { }
|
21
|
+
AudioController() {
|
22
|
+
throw new Error('Method not implemented.');
|
23
|
+
}
|
19
24
|
openUrl(url) {
|
20
25
|
void this.sendCommand('openUrl', {
|
21
26
|
url,
|