2017-09-11 18:10:12 +01:00
|
|
|
package carddav
|
|
|
|
|
|
|
|
import (
|
|
|
|
"encoding/xml"
|
|
|
|
|
|
|
|
"github.com/emersion/go-webdav"
|
|
|
|
)
|
|
|
|
|
|
|
|
// https://tools.ietf.org/html/rfc6352#section-10.7
|
|
|
|
type addressbookMultiget struct {
|
2017-09-11 18:10:53 +01:00
|
|
|
XMLName xml.Name `xml:"urn:ietf:params:xml:ns:carddav addressbook-multiget"`
|
|
|
|
Allprop *struct{} `xml:"DAV: allprop"`
|
|
|
|
Propname *struct{} `xml:"DAV: propname"`
|
2017-09-11 18:10:12 +01:00
|
|
|
Prop webdav.PropfindProps `xml:"DAV: prop"`
|
2017-09-11 18:10:53 +01:00
|
|
|
Href []string `xml:"DAV: href"`
|
2017-09-11 18:10:12 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// TODO
|
|
|
|
type addressData struct {
|
2017-09-11 18:10:53 +01:00
|
|
|
XMLName xml.Name `xml:"urn:ietf:params:xml:ns:carddav address-data"`
|
|
|
|
ContentType string `xml:"content-type,attr"`
|
|
|
|
Version string `xml:"version,attr"`
|
|
|
|
Prop []string `xml:"prop>name,attr"`
|
2017-09-11 18:10:12 +01:00
|
|
|
}
|