getAllFromEvent static method
Will get a PcoCollection containing ALL PcoCalendarConflict objects (expecting many)
using a path like this: /calendar/v2/events/$eventId/conflicts
Additional options may be specified by using the query
argument, but some
query options are also available as boolean flags in this function call too.
This function forces the query.getAll
to be true.
Implementation
static Future<PcoCollection<PcoCalendarConflict>> getAllFromEvent(
String eventId, {
String? id,
PcoCalendarConflictQuery? query,
bool includeAllRelated = false,
bool includeResolvedBy = false,
bool includeResource = false,
bool includeWinner = false,
}) async {
query ??= PcoCalendarConflictQuery();
query.getAll = true;
if (includeAllRelated) query.include.addAll(PcoCalendarConflict.canInclude);
if (includeResolvedBy) query.include.add('resolved_by');
if (includeResource) query.include.add('resource');
if (includeWinner) query.include.add('winner');
var url = '/calendar/v2/events/$eventId/conflicts';
if (id != null) url += '/$id';
return PcoCollection.fromApiCall<PcoCalendarConflict>(url,
query: query, apiVersion: kApiVersion);
}