From 9519af62e4e3fac2a08cd96845c69aa5279bdf19 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Fri, 16 Jun 2023 15:10:03 +0200 Subject: [PATCH] nextcloud: Fix WebDAV element name --- packages/nextcloud/lib/src/webdav/webdav.dart | 2 +- packages/nextcloud/lib/src/webdav/webdav.g.dart | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/nextcloud/lib/src/webdav/webdav.dart b/packages/nextcloud/lib/src/webdav/webdav.dart index 6a7932a5..981c520b 100644 --- a/packages/nextcloud/lib/src/webdav/webdav.dart +++ b/packages/nextcloud/lib/src/webdav/webdav.dart @@ -84,7 +84,7 @@ class WebDavPropertyupdate with _$WebDavPropertyupdateXmlSerializableMixin { } @annotation.XmlSerializable(createMixin: true) -@annotation.XmlRootElement(name: 'propertyupdate', namespace: namespaceDav) +@annotation.XmlRootElement(name: 'set', namespace: namespaceDav) class WebDavSet with _$WebDavSetXmlSerializableMixin { WebDavSet({ required this.prop, diff --git a/packages/nextcloud/lib/src/webdav/webdav.g.dart b/packages/nextcloud/lib/src/webdav/webdav.g.dart index 6d5b2e0e..1007981f 100644 --- a/packages/nextcloud/lib/src/webdav/webdav.g.dart +++ b/packages/nextcloud/lib/src/webdav/webdav.g.dart @@ -289,7 +289,7 @@ void _$WebDavSetBuildXmlChildren(WebDavSet instance, XmlBuilder builder, {Map namespaces = const {}}) { - builder.element('propertyupdate', namespace: 'DAV:', namespaces: namespaces, nest: () { + builder.element('set', namespace: 'DAV:', namespaces: namespaces, nest: () { instance.buildXmlChildren(builder, namespaces: namespaces); }); } @@ -316,7 +316,7 @@ List _$WebDavSetToXmlChildren(WebDavSet instance, {Map XmlElement _$WebDavSetToXmlElement(WebDavSet instance, {Map namespaces = const {}}) { return XmlElement( - XmlName('propertyupdate', namespaces['DAV:']), + XmlName('set', namespaces['DAV:']), [...namespaces.toXmlAttributes(), ...instance.toXmlAttributes(namespaces: namespaces)], instance.toXmlChildren(namespaces: namespaces)); }