caldav: add MKCOL support

This commit is contained in:
Thomas Müller
2024-02-08 17:08:41 +01:00
committed by GitHub
parent 20fad80dff
commit 0ea114ec79
3 changed files with 36 additions and 1 deletions

View File

@@ -228,3 +228,10 @@ func (r *reportReq) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
return d.DecodeElement(v, &start)
}
type mkcolReq struct {
XMLName xml.Name `xml:"DAV: mkcol"`
ResourceType internal.ResourceType `xml:"set>prop>resourcetype"`
DisplayName string `xml:"set>prop>displayname"`
// TODO this could theoretically contain all addressbook properties?
}