forked from brutella/hc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
input_source.go
52 lines (38 loc) · 1.62 KB
/
input_source.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
50
51
52
// THIS FILE IS AUTO-GENERATED
package service
import (
"github.com/brutella/hc/characteristic"
)
const TypeInputSource = "D9"
type InputSource struct {
*Service
ConfiguredName *characteristic.ConfiguredName
InputSourceType *characteristic.InputSourceType
IsConfigured *characteristic.IsConfigured
CurrentVisibilityState *characteristic.CurrentVisibilityState
Identifier *characteristic.Identifier
InputDeviceType *characteristic.InputDeviceType
TargetVisibilityState *characteristic.TargetVisibilityState
Name *characteristic.Name
}
func NewInputSource() *InputSource {
svc := InputSource{}
svc.Service = New(TypeInputSource)
svc.ConfiguredName = characteristic.NewConfiguredName()
svc.AddCharacteristic(svc.ConfiguredName.Characteristic)
svc.InputSourceType = characteristic.NewInputSourceType()
svc.AddCharacteristic(svc.InputSourceType.Characteristic)
svc.IsConfigured = characteristic.NewIsConfigured()
svc.AddCharacteristic(svc.IsConfigured.Characteristic)
svc.CurrentVisibilityState = characteristic.NewCurrentVisibilityState()
svc.AddCharacteristic(svc.CurrentVisibilityState.Characteristic)
svc.Identifier = characteristic.NewIdentifier()
svc.AddCharacteristic(svc.Identifier.Characteristic)
svc.InputDeviceType = characteristic.NewInputDeviceType()
svc.AddCharacteristic(svc.InputDeviceType.Characteristic)
svc.TargetVisibilityState = characteristic.NewTargetVisibilityState()
svc.AddCharacteristic(svc.TargetVisibilityState.Characteristic)
svc.Name = characteristic.NewName()
svc.AddCharacteristic(svc.Name.Characteristic)
return &svc
}