forked from brutella/hap
-
Notifications
You must be signed in to change notification settings - Fork 2
/
window_covering_vertical.go
38 lines (28 loc) · 1.04 KB
/
window_covering_vertical.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
// THIS FILE IS AUTO-GENERATED
package service
import (
"github.com/LUJUNQUAN/hap/characteristic"
)
type WindowCoveringVertical struct {
*S
CurrentPosition *characteristic.CurrentPosition
TargetPosition *characteristic.TargetPosition
PositionState *characteristic.PositionState
CurrentVerticalTiltAngle *characteristic.CurrentVerticalTiltAngle
TargetVerticalTiltAngle *characteristic.TargetVerticalTiltAngle
}
func NewWindowCoveringVertical() *WindowCoveringVertical {
s := WindowCoveringVertical{}
s.S = New(TypeWindowCovering)
s.CurrentPosition = characteristic.NewCurrentPosition()
s.AddC(s.CurrentPosition.C)
s.TargetPosition = characteristic.NewTargetPosition()
s.AddC(s.TargetPosition.C)
s.PositionState = characteristic.NewPositionState()
s.AddC(s.PositionState.C)
s.CurrentVerticalTiltAngle = characteristic.NewCurrentVerticalTiltAngle()
s.AddC(s.CurrentVerticalTiltAngle.C)
s.TargetVerticalTiltAngle = characteristic.NewTargetVerticalTiltAngle()
s.AddC(s.TargetVerticalTiltAngle.C)
return &s
}