forked from brutella/hap
-
Notifications
You must be signed in to change notification settings - Fork 2
/
ventilation_system.go
46 lines (34 loc) · 1.3 KB
/
ventilation_system.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
// THIS FILE IS AUTO-GENERATED
package service
import (
"github.com/LUJUNQUAN/hap/characteristic"
)
type VentilationSystem struct {
*S
Active *characteristic.Active
CurrentAirPurifierState *characteristic.CurrentAirPurifierState
TargetAirPurifierState *characteristic.TargetAirPurifierState
CarbonDioxideLevel *characteristic.CarbonDioxideLevel
PM2_5Density *characteristic.PM2_5Density
CurrentTemperature *characteristic.CurrentTemperature
CurrentRelativeHumidity *characteristic.CurrentRelativeHumidity
}
func NewVentilationSystem() *VentilationSystem {
s := VentilationSystem{}
s.S = New(TypeAirPurifier)
s.Active = characteristic.NewActive()
s.AddC(s.Active.C)
s.CurrentAirPurifierState = characteristic.NewCurrentAirPurifierState()
s.AddC(s.CurrentAirPurifierState.C)
s.TargetAirPurifierState = characteristic.NewTargetAirPurifierState()
s.AddC(s.TargetAirPurifierState.C)
s.CarbonDioxideLevel = characteristic.NewCarbonDioxideLevel()
s.AddC(s.CarbonDioxideLevel.C)
s.PM2_5Density = characteristic.NewPM2_5Density()
s.AddC(s.PM2_5Density.C)
s.CurrentTemperature = characteristic.NewCurrentTemperature()
s.AddC(s.CurrentTemperature.C)
s.CurrentRelativeHumidity = characteristic.NewCurrentRelativeHumidity()
s.AddC(s.CurrentRelativeHumidity.C)
return &s
}