Browse Source

nextcloud: Fix WebDAV element name

pull/393/head
jld3103 2 years ago
parent
commit
9519af62e4
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 2
      packages/nextcloud/lib/src/webdav/webdav.dart
  2. 4
      packages/nextcloud/lib/src/webdav/webdav.g.dart

2
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,

4
packages/nextcloud/lib/src/webdav/webdav.g.dart

@ -289,7 +289,7 @@ void _$WebDavSetBuildXmlChildren(WebDavSet instance, XmlBuilder builder, {Map<St
}
void _$WebDavSetBuildXmlElement(WebDavSet instance, XmlBuilder builder, {Map<String, String> 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<XmlNode> _$WebDavSetToXmlChildren(WebDavSet instance, {Map<String, String?>
XmlElement _$WebDavSetToXmlElement(WebDavSet instance, {Map<String, String?> namespaces = const {}}) {
return XmlElement(
XmlName('propertyupdate', namespaces['DAV:']),
XmlName('set', namespaces['DAV:']),
[...namespaces.toXmlAttributes(), ...instance.toXmlAttributes(namespaces: namespaces)],
instance.toXmlChildren(namespaces: namespaces));
}

Loading…
Cancel
Save