-
Notifications
You must be signed in to change notification settings - Fork 43
/
accessory_information.go
44 lines (32 loc) · 1009 Bytes
/
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/hap/characteristic"
)
const TypeAccessoryInformation = "3E"
type AccessoryInformation struct {
*S
Identify *characteristic.Identify
Manufacturer *characteristic.Manufacturer
Model *characteristic.Model
Name *characteristic.Name
SerialNumber *characteristic.SerialNumber
FirmwareRevision *characteristic.FirmwareRevision
}
func NewAccessoryInformation() *AccessoryInformation {
s := AccessoryInformation{}
s.S = New(TypeAccessoryInformation)
s.Identify = characteristic.NewIdentify()
s.AddC(s.Identify.C)
s.Manufacturer = characteristic.NewManufacturer()
s.AddC(s.Manufacturer.C)
s.Model = characteristic.NewModel()
s.AddC(s.Model.C)
s.Name = characteristic.NewName()
s.AddC(s.Name.C)
s.SerialNumber = characteristic.NewSerialNumber()
s.AddC(s.SerialNumber.C)
s.FirmwareRevision = characteristic.NewFirmwareRevision()
s.AddC(s.FirmwareRevision.C)
return &s
}