2020-01-14 21:19:54 +00:00
|
|
|
package carddav
|
|
|
|
|
2020-01-14 22:13:23 +00:00
|
|
|
import (
|
|
|
|
"encoding/xml"
|
2020-01-14 22:44:21 +00:00
|
|
|
|
|
|
|
"github.com/emersion/go-vcard"
|
2020-01-14 22:13:23 +00:00
|
|
|
)
|
|
|
|
|
2020-01-14 21:19:54 +00:00
|
|
|
const namespace = "urn:ietf:params:xml:ns:carddav"
|
2020-01-14 22:13:23 +00:00
|
|
|
|
|
|
|
type AddressBook struct {
|
|
|
|
Href string
|
|
|
|
Description string
|
|
|
|
}
|
|
|
|
|
|
|
|
var addressBookName = xml.Name{namespace, "addressbook"}
|
|
|
|
|
|
|
|
type AddressBookQuery struct {
|
2020-01-14 22:44:21 +00:00
|
|
|
Props []string
|
|
|
|
}
|
|
|
|
|
2020-01-15 11:09:42 +00:00
|
|
|
type AddressBookMultiGet struct {
|
|
|
|
Hrefs []string
|
|
|
|
Props []string
|
|
|
|
}
|
|
|
|
|
2020-01-14 22:44:21 +00:00
|
|
|
type Address struct {
|
|
|
|
Href string
|
|
|
|
Card vcard.Card
|
2020-01-14 22:13:23 +00:00
|
|
|
}
|