carddav: add displayname and addressbook-description to server

This commit is contained in:
Simon Ser
2020-01-19 14:53:58 +01:00
parent 797b2f8fc5
commit edfc2804b5
5 changed files with 28 additions and 7 deletions

View File

@@ -303,6 +303,7 @@ type GetLastModified struct {
var (
ResourceTypeName = xml.Name{"DAV:", "resourcetype"}
DisplayNameName = xml.Name{"DAV:", "displayname"}
GetContentLengthName = xml.Name{"DAV:", "getcontentlength"}
GetContentTypeName = xml.Name{"DAV:", "getcontenttype"}
GetLastModifiedName = xml.Name{"DAV:", "getlastmodified"}
@@ -314,3 +315,9 @@ type Error struct {
XMLName xml.Name `xml:"DAV: error"`
Raw []RawXMLValue `xml:",any"`
}
// https://tools.ietf.org/html/rfc4918#section-15.2
type DisplayName struct {
XMLName xml.Name `xml:"DAV: displayname"`
Name string `xml:",chardata"`
}