forked from brutella/hc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
air_purifier.go
49 lines (35 loc) · 1.44 KB
/
air_purifier.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
38
39
40
41
42
43
44
45
46
47
48
49
// THIS FILE IS AUTO-GENERATED
package service
import (
"github.com/grumpylabs/hcf/characteristic"
)
const TypeAirPurifier = "BB"
type AirPurifier struct {
*Service
Active *characteristic.Active
CurrentAirPurifierState *characteristic.CurrentAirPurifierState
TargetAirPurifierState *characteristic.TargetAirPurifierState
LockPhysicalControls *characteristic.LockPhysicalControls
Name *characteristic.Name
SwingMode *characteristic.SwingMode
RotationSpeed *characteristic.RotationSpeed
}
func NewAirPurifier() *AirPurifier {
svc := AirPurifier{}
svc.Service = New(TypeAirPurifier)
svc.Active = characteristic.NewActive()
svc.AddCharacteristic(svc.Active.Characteristic)
svc.CurrentAirPurifierState = characteristic.NewCurrentAirPurifierState()
svc.AddCharacteristic(svc.CurrentAirPurifierState.Characteristic)
svc.TargetAirPurifierState = characteristic.NewTargetAirPurifierState()
svc.AddCharacteristic(svc.TargetAirPurifierState.Characteristic)
svc.LockPhysicalControls = characteristic.NewLockPhysicalControls()
svc.AddCharacteristic(svc.LockPhysicalControls.Characteristic)
svc.Name = characteristic.NewName()
svc.AddCharacteristic(svc.Name.Characteristic)
svc.SwingMode = characteristic.NewSwingMode()
svc.AddCharacteristic(svc.SwingMode.Characteristic)
svc.RotationSpeed = characteristic.NewRotationSpeed()
svc.AddCharacteristic(svc.RotationSpeed.Characteristic)
return &svc
}