forked from brutella/hc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
doorbell.go
37 lines (26 loc) · 866 Bytes
/
doorbell.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
37
// THIS FILE IS AUTO-GENERATED
package service
import (
"github.com/grumpylabs/hcf/characteristic"
)
const TypeDoorbell = "121"
type Doorbell struct {
*Service
ProgrammableSwitchEvent *characteristic.ProgrammableSwitchEvent
Brightness *characteristic.Brightness
Volume *characteristic.Volume
Name *characteristic.Name
}
func NewDoorbell() *Doorbell {
svc := Doorbell{}
svc.Service = New(TypeDoorbell)
svc.ProgrammableSwitchEvent = characteristic.NewProgrammableSwitchEvent()
svc.AddCharacteristic(svc.ProgrammableSwitchEvent.Characteristic)
svc.Brightness = characteristic.NewBrightness()
svc.AddCharacteristic(svc.Brightness.Characteristic)
svc.Volume = characteristic.NewVolume()
svc.AddCharacteristic(svc.Volume.Characteristic)
svc.Name = characteristic.NewName()
svc.AddCharacteristic(svc.Name.Characteristic)
return &svc
}