Commit Graph

4 Commits

Author SHA1 Message Date
ProtoTess 9cf30e2c41 cleanup 2026-01-16 04:58:24 +00:00
0x524a 6603084ccd refactor: streamline media operations and enhance PTZ XML serialization
- Refactored media operations to consistently use the `getMediaEndpoint` method for endpoint retrieval, improving code clarity and reducing redundancy.
- Simplified the `ContinuousMove`, `AbsoluteMove`, and `RelativeMove` methods by introducing shared XML serialization types for PTZ commands, enhancing maintainability.
- Updated the `generateUUID` function to improve UUID generation efficiency by reducing redundant calls to `time.Now()`.
- Replaced manual struct definitions with dedicated XML types for better readability and organization in PTZ operations.
2025-12-03 10:37:35 -05:00
0x524a df3cdfb5ab feat: add missing Device IO operations and fix formatting
- Add GetVideoOutputConfiguration operation
- Add GetVideoOutputConfigurationOptions operation
- Add SetVideoOutputConfiguration operation
- Add GetRelayOutputOptions operation
- Add comprehensive tests for new operations
- Add CLI support for new Device IO operations
- Fix gofmt formatting issues in all files
2025-12-03 01:03:11 -05:00
0x524a 89851baa1f feat: implement Event and Device IO services with CLI integration
- Added Event and Device IO service implementations in `event.go` and `deviceio.go`.
- Created corresponding test files `event_test.go` and `deviceio_test.go` for unit testing.
- Enhanced CLI with new options for Event and Device IO operations, allowing users to interact with these services.
- Introduced example usage in `examples/test-event-deviceio/main.go` to demonstrate functionality.
- Updated golangci-lint configuration to include new files for linting checks.
2025-12-03 00:55:22 -05:00