-
Notifications
You must be signed in to change notification settings - Fork 190
/
bridge_configuration.go
36 lines (26 loc) · 1.24 KB
/
bridge_configuration.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// THIS FILE IS AUTO-GENERATED
package service
import (
"github.com/brutella/hc/characteristic"
)
const TypeBridgeConfiguration = "A1"
type BridgeConfiguration struct {
*Service
ConfigureBridgedAccessoryStatus *characteristic.ConfigureBridgedAccessoryStatus
DiscoverBridgedAccessories *characteristic.DiscoverBridgedAccessories
DiscoveredBridgedAccessories *characteristic.DiscoveredBridgedAccessories
ConfigureBridgedAccessory *characteristic.ConfigureBridgedAccessory
}
func NewBridgeConfiguration() *BridgeConfiguration {
svc := BridgeConfiguration{}
svc.Service = New(TypeBridgeConfiguration)
svc.ConfigureBridgedAccessoryStatus = characteristic.NewConfigureBridgedAccessoryStatus()
svc.AddCharacteristic(svc.ConfigureBridgedAccessoryStatus.Characteristic)
svc.DiscoverBridgedAccessories = characteristic.NewDiscoverBridgedAccessories()
svc.AddCharacteristic(svc.DiscoverBridgedAccessories.Characteristic)
svc.DiscoveredBridgedAccessories = characteristic.NewDiscoveredBridgedAccessories()
svc.AddCharacteristic(svc.DiscoveredBridgedAccessories.Characteristic)
svc.ConfigureBridgedAccessory = characteristic.NewConfigureBridgedAccessory()
svc.AddCharacteristic(svc.ConfigureBridgedAccessory.Characteristic)
return &svc
}