-
Notifications
You must be signed in to change notification settings - Fork 190
/
accessory_information.go
44 lines (32 loc) · 1.19 KB
/
accessory_information.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
// THIS FILE IS AUTO-GENERATED
package service
import (
"github.com/brutella/hc/characteristic"
)
const TypeAccessoryInformation = "3E"
type AccessoryInformation struct {
*Service
Identify *characteristic.Identify
Manufacturer *characteristic.Manufacturer
Model *characteristic.Model
Name *characteristic.Name
SerialNumber *characteristic.SerialNumber
FirmwareRevision *characteristic.FirmwareRevision
}
func NewAccessoryInformation() *AccessoryInformation {
svc := AccessoryInformation{}
svc.Service = New(TypeAccessoryInformation)
svc.Identify = characteristic.NewIdentify()
svc.AddCharacteristic(svc.Identify.Characteristic)
svc.Manufacturer = characteristic.NewManufacturer()
svc.AddCharacteristic(svc.Manufacturer.Characteristic)
svc.Model = characteristic.NewModel()
svc.AddCharacteristic(svc.Model.Characteristic)
svc.Name = characteristic.NewName()
svc.AddCharacteristic(svc.Name.Characteristic)
svc.SerialNumber = characteristic.NewSerialNumber()
svc.AddCharacteristic(svc.SerialNumber.Characteristic)
svc.FirmwareRevision = characteristic.NewFirmwareRevision()
svc.AddCharacteristic(svc.FirmwareRevision.Characteristic)
return &svc
}