Add support for ArloQ cameras.

This commit is contained in:
jwalter1-quest 2020-04-20 16:56:09 -05:00
parent 077668ca58
commit a8b31e22a8

View File

@ -102,7 +102,25 @@ func (d Device) IsBasestation() bool {
} }
func (d Device) IsCamera() 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". // GetBasestations returns a Basestations object containing all devices that are NOT type "camera".