carddav: add Client.QueryAddressBook

This commit is contained in:
Simon Ser
2020-01-14 23:44:21 +01:00
parent 9dfabd89c8
commit 56c162197b
4 changed files with 98 additions and 3 deletions

View File

@@ -2,6 +2,8 @@ package carddav
import (
"encoding/xml"
"github.com/emersion/go-vcard"
)
const namespace = "urn:ietf:params:xml:ns:carddav"
@@ -14,5 +16,10 @@ type AddressBook struct {
var addressBookName = xml.Name{namespace, "addressbook"}
type AddressBookQuery struct {
AddressDataProps []string
Props []string
}
type Address struct {
Href string
Card vcard.Card
}