caldav: add expand request to client
This commit is contained in:
@@ -179,7 +179,8 @@ func (t *dateWithUTCTime) MarshalText() ([]byte, error) {
|
||||
type calendarDataReq struct {
|
||||
XMLName xml.Name `xml:"urn:ietf:params:xml:ns:caldav calendar-data"`
|
||||
Comp *comp `xml:"comp,omitempty"`
|
||||
// TODO: expand, limit-recurrence-set, limit-freebusy-set
|
||||
Expand *expand `xml:"expand,omitempty"`
|
||||
// TODO: limit-recurrence-set, limit-freebusy-set
|
||||
}
|
||||
|
||||
// https://tools.ietf.org/html/rfc4791#section-9.6.1
|
||||
@@ -194,6 +195,12 @@ type comp struct {
|
||||
Comp []comp `xml:"comp,omitempty"`
|
||||
}
|
||||
|
||||
type expand struct {
|
||||
XMLName xml.Name `xml:"urn:ietf:params:xml:ns:caldav expand"`
|
||||
Start dateWithUTCTime `xml:"start,attr"`
|
||||
End dateWithUTCTime `xml:"end,attr"`
|
||||
}
|
||||
|
||||
// https://tools.ietf.org/html/rfc4791#section-9.6.4
|
||||
type prop struct {
|
||||
XMLName xml.Name `xml:"urn:ietf:params:xml:ns:caldav prop"`
|
||||
|
Reference in New Issue
Block a user