getObjects method

Future<CalResponse> getObjects(
  1. String path, {
  2. int? depth,
})

This request will give us every object that's a VCALENDAR object, and its etag.

Implementation

Future<CalResponse> getObjects(String path, {int? depth}) {
  var body = //
      '''<c:calendar-query xmlns:d="DAV:" xmlns:c="urn:ietf:params:xml:ns:caldav">
<d:prop>
  <d:getetag />
  <c:calendar-data />
</d:prop>
<c:filter>
  <c:comp-filter name="VCALENDAR" />
</c:filter>
</c:calendar-query>''';

  return report(path, body, depth: depth);
}