forked from brutella/hc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
television.go
68 lines (50 loc) · 2.2 KB
/
television.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// THIS FILE IS AUTO-GENERATED
package service
import (
"github.com/brutella/hc/characteristic"
)
const TypeTelevision = "D8"
type Television struct {
*Service
Active *characteristic.Active
ActiveIdentifier *characteristic.ActiveIdentifier
ConfiguredName *characteristic.ConfiguredName
SleepDiscoveryMode *characteristic.SleepDiscoveryMode
Brightness *characteristic.Brightness
ClosedCaptions *characteristic.ClosedCaptions
DisplayOrder *characteristic.DisplayOrder
CurrentMediaState *characteristic.CurrentMediaState
TargetMediaState *characteristic.TargetMediaState
PictureMode *characteristic.PictureMode
PowerModeSelection *characteristic.PowerModeSelection
RemoteKey *characteristic.RemoteKey
}
func NewTelevision() *Television {
svc := Television{}
svc.Service = New(TypeTelevision)
svc.Active = characteristic.NewActive()
svc.AddCharacteristic(svc.Active.Characteristic)
svc.ActiveIdentifier = characteristic.NewActiveIdentifier()
svc.AddCharacteristic(svc.ActiveIdentifier.Characteristic)
svc.ConfiguredName = characteristic.NewConfiguredName()
svc.AddCharacteristic(svc.ConfiguredName.Characteristic)
svc.SleepDiscoveryMode = characteristic.NewSleepDiscoveryMode()
svc.AddCharacteristic(svc.SleepDiscoveryMode.Characteristic)
svc.Brightness = characteristic.NewBrightness()
svc.AddCharacteristic(svc.Brightness.Characteristic)
svc.ClosedCaptions = characteristic.NewClosedCaptions()
svc.AddCharacteristic(svc.ClosedCaptions.Characteristic)
svc.DisplayOrder = characteristic.NewDisplayOrder()
svc.AddCharacteristic(svc.DisplayOrder.Characteristic)
svc.CurrentMediaState = characteristic.NewCurrentMediaState()
svc.AddCharacteristic(svc.CurrentMediaState.Characteristic)
svc.TargetMediaState = characteristic.NewTargetMediaState()
svc.AddCharacteristic(svc.TargetMediaState.Characteristic)
svc.PictureMode = characteristic.NewPictureMode()
svc.AddCharacteristic(svc.PictureMode.Characteristic)
svc.PowerModeSelection = characteristic.NewPowerModeSelection()
svc.AddCharacteristic(svc.PowerModeSelection.Characteristic)
svc.RemoteKey = characteristic.NewRemoteKey()
svc.AddCharacteristic(svc.RemoteKey.Characteristic)
return &svc
}