hoffmation-base 3.0.0-beta.10 → 3.0.0-beta.11
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.
|
@@ -16,6 +16,10 @@ export declare class CameraSettings extends MotionSensorSettings {
|
|
|
16
16
|
* Whether the camera has audio.
|
|
17
17
|
*/
|
|
18
18
|
hasAudio: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Whether the camera has a speaker.
|
|
21
|
+
*/
|
|
22
|
+
hasSpeaker: boolean;
|
|
19
23
|
fromPartialObject(data: Partial<CameraSettings>): void;
|
|
20
24
|
protected toJSON(): Partial<MotionSensorSettings>;
|
|
21
25
|
}
|
|
@@ -22,13 +22,18 @@ class CameraSettings extends motionSensorSettings_1.MotionSensorSettings {
|
|
|
22
22
|
* Whether the camera has audio.
|
|
23
23
|
*/
|
|
24
24
|
this.hasAudio = false;
|
|
25
|
+
/**
|
|
26
|
+
* Whether the camera has a speaker.
|
|
27
|
+
*/
|
|
28
|
+
this.hasSpeaker = false;
|
|
25
29
|
}
|
|
26
30
|
fromPartialObject(data) {
|
|
27
|
-
var _a, _b, _c, _d;
|
|
31
|
+
var _a, _b, _c, _d, _e;
|
|
28
32
|
this.alertPersonOnTelegram = (_a = data.alertPersonOnTelegram) !== null && _a !== void 0 ? _a : this.alertPersonOnTelegram;
|
|
29
33
|
this.movementDetectionOnPersonOnly = (_b = data.movementDetectionOnPersonOnly) !== null && _b !== void 0 ? _b : this.movementDetectionOnPersonOnly;
|
|
30
34
|
this.movementDetectionOnDogsToo = (_c = data.movementDetectionOnDogsToo) !== null && _c !== void 0 ? _c : this.movementDetectionOnDogsToo;
|
|
31
35
|
this.hasAudio = (_d = data.hasAudio) !== null && _d !== void 0 ? _d : this.hasAudio;
|
|
36
|
+
this.hasAudio = (_e = data.hasSpeaker) !== null && _e !== void 0 ? _e : this.hasSpeaker;
|
|
32
37
|
super.fromPartialObject(data);
|
|
33
38
|
}
|
|
34
39
|
toJSON() {
|