From a1da89ea4d1f14e432cba256f8b907e3ff262070 Mon Sep 17 00:00:00 2001 From: Chris D Date: Sat, 17 Feb 2024 21:11:35 -0500 Subject: [PATCH] Issue \#58, Class names match Onvif Spec, buildXML() method for PTZ --- CHANGELOG.md | 13 +++++++++++++ lib/src/soap/ptz.dart | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 127ff3b..f6a0b23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,19 @@ ## 2.3.0 +* Issue #58 + * Reverted the timestamp format to build in dart `toIso8601String()` +* PTZ + * Revised class names for PTZ functionality to better match the Onvif Spec - PanTilt => Vector2D, Zoom => Vector1D + * Implemented the buildXML() method for much of the PTZ functionality to better place functionality in its useful class + * Capabilities + * All fields are now optional, not all devices are reporting this information +* DeviceManagement + * GetDeviceInformationResponse + * manufacturer and model are now optional fields, not all devices are reporting this information + +## 2.3.0 + * Issue #58 * Reverted the timestamp format to build in dart `toIso8601String()` * PTZ diff --git a/lib/src/soap/ptz.dart b/lib/src/soap/ptz.dart index 4f795ee..77df5c1 100644 --- a/lib/src/soap/ptz.dart +++ b/lib/src/soap/ptz.dart @@ -29,7 +29,7 @@ class PtzRequest { return Transport.builder.buildFragment(); } - /// XML for the [continuousMove], requires a [profileToken] and [PtzPosition], + /// XML for the [continuousMove], requires a [profileToken] and [PtzSpeed], /// and optionally [timeout] static XmlDocumentFragment continuousMove(String profileToken, {required PtzSpeed velocity, int? timeout}) { @@ -195,7 +195,7 @@ class PtzRequest { return Transport.builder.buildFragment(); } - /// XML for the [relativeMove], requires a [profileToken] and [PtzPosition] + /// XML for the [relativeMove], requires a [profileToken] and [PtzVector] static XmlDocumentFragment relativeMove( String profileToken, PtzVector translation, PtzSpeed? speed) { Transport.builder.element('RelativeMove', nest: () {