From a8b31e22a8d48c2540d20d374c5c3683b3cdcb85 Mon Sep 17 00:00:00 2001 From: jwalter1-quest Date: Mon, 20 Apr 2020 16:56:09 -0500 Subject: [PATCH] Add support for ArloQ cameras. --- devices.go | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/devices.go b/devices.go index 84bf996..cffd778 100644 --- a/devices.go +++ b/devices.go @@ -102,7 +102,25 @@ func (d Device) IsBasestation() bool { } func (d Device) IsCamera() bool { - return d.DeviceType == DeviceTypeCamera + switch(d.DeviceType) { + case + DeviceTypeCamera, + DeviceTypeArloQ, + return true + } + return false +} + +func (d Device) IsArloQ() bool { + return d.DeviceType == DeviceTypeArloBridge +} + +func (d Device) IsLight() bool { + return d.DeviceType == DeviceTypeLights +} + +func (d Device) IsSiren() bool { + return d.DeviceType == DeviceTypeSiren } // GetBasestations returns a Basestations object containing all devices that are NOT type "camera".