-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add camera recording management service
- Loading branch information
Showing
6 changed files
with
171 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// THIS FILE IS AUTO-GENERATED | ||
package characteristic | ||
|
||
const TypeSelectedCameraRecordingConfiguration = "209" | ||
|
||
type SelectedCameraRecordingConfiguration struct { | ||
*Bytes | ||
} | ||
|
||
func NewSelectedCameraRecordingConfiguration() *SelectedCameraRecordingConfiguration { | ||
char := NewBytes(TypeSelectedCameraRecordingConfiguration) | ||
char.Format = FormatTLV8 | ||
char.Perms = []string{PermRead, PermWrite, PermEvents} | ||
|
||
char.SetValue([]byte{}) | ||
|
||
return &SelectedCameraRecordingConfiguration{char} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// THIS FILE IS AUTO-GENERATED | ||
package characteristic | ||
|
||
const TypeSupportedAudioRecordingConfiguration = "207" | ||
|
||
type SupportedAudioRecordingConfiguration struct { | ||
*Bytes | ||
} | ||
|
||
func NewSupportedAudioRecordingConfiguration() *SupportedAudioRecordingConfiguration { | ||
char := NewBytes(TypeSupportedAudioRecordingConfiguration) | ||
char.Format = FormatTLV8 | ||
char.Perms = []string{PermRead, PermEvents} | ||
|
||
char.SetValue([]byte{}) | ||
|
||
return &SupportedAudioRecordingConfiguration{char} | ||
} |
18 changes: 18 additions & 0 deletions
18
characteristic/supported_camera_recording_configuration.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// THIS FILE IS AUTO-GENERATED | ||
package characteristic | ||
|
||
const TypeSupportedCameraRecordingConfiguration = "205" | ||
|
||
type SupportedCameraRecordingConfiguration struct { | ||
*Bytes | ||
} | ||
|
||
func NewSupportedCameraRecordingConfiguration() *SupportedCameraRecordingConfiguration { | ||
char := NewBytes(TypeSupportedCameraRecordingConfiguration) | ||
char.Format = FormatTLV8 | ||
char.Perms = []string{PermRead, PermEvents} | ||
|
||
char.SetValue([]byte{}) | ||
|
||
return &SupportedCameraRecordingConfiguration{char} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// THIS FILE IS AUTO-GENERATED | ||
package characteristic | ||
|
||
const TypeSupportedVideoRecordingConfiguration = "206" | ||
|
||
type SupportedVideoRecordingConfiguration struct { | ||
*Bytes | ||
} | ||
|
||
func NewSupportedVideoRecordingConfiguration() *SupportedVideoRecordingConfiguration { | ||
char := NewBytes(TypeSupportedVideoRecordingConfiguration) | ||
char.Format = FormatTLV8 | ||
char.Perms = []string{PermRead, PermEvents} | ||
|
||
char.SetValue([]byte{}) | ||
|
||
return &SupportedVideoRecordingConfiguration{char} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// THIS FILE IS AUTO-GENERATED | ||
package service | ||
|
||
import ( | ||
"github.com/brutella/hc/characteristic" | ||
) | ||
|
||
const TypeCameraRecordingManagement = "204" | ||
|
||
type CameraRecordingManagement struct { | ||
*Service | ||
|
||
SupportedCameraRecordingConfiguration *characteristic.SupportedCameraRecordingConfiguration | ||
SupportedVideoRecordingConfiguration *characteristic.SupportedVideoRecordingConfiguration | ||
SupportedAudioRecordingConfiguration *characteristic.SupportedAudioRecordingConfiguration | ||
SelectedCameraRecordingConfiguration *characteristic.SelectedCameraRecordingConfiguration | ||
} | ||
|
||
func NewCameraRecordingManagement() *CameraRecordingManagement { | ||
svc := CameraRecordingManagement{} | ||
svc.Service = New(TypeCameraRecordingManagement) | ||
|
||
svc.SupportedCameraRecordingConfiguration = characteristic.NewSupportedCameraRecordingConfiguration() | ||
svc.AddCharacteristic(svc.SupportedCameraRecordingConfiguration.Characteristic) | ||
|
||
svc.SupportedVideoRecordingConfiguration = characteristic.NewSupportedVideoRecordingConfiguration() | ||
svc.AddCharacteristic(svc.SupportedVideoRecordingConfiguration.Characteristic) | ||
|
||
svc.SupportedAudioRecordingConfiguration = characteristic.NewSupportedAudioRecordingConfiguration() | ||
svc.AddCharacteristic(svc.SupportedAudioRecordingConfiguration.Characteristic) | ||
|
||
svc.SelectedCameraRecordingConfiguration = characteristic.NewSelectedCameraRecordingConfiguration() | ||
svc.AddCharacteristic(svc.SelectedCameraRecordingConfiguration.Characteristic) | ||
|
||
return &svc | ||
} |