getAllFromEvent static method
Future<PcoCollection<PcoGroupsLocation> >
getAllFromEvent(
- String eventId, {
- String? id,
- PcoGroupsLocationQuery? query,
Will get a PcoCollection
containing ALL PcoGroupsLocation objects (expecting many)
using a path like this: /groups/v2/events/$eventId/location
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<PcoGroupsLocation>> getAllFromEvent(
String eventId, {
String? id,
PcoGroupsLocationQuery? query,
}) async {
query ??= PcoGroupsLocationQuery();
query.getAll = true;
var url = '/groups/v2/events/$eventId/location';
if (id != null) url += '/$id';
return PcoCollection.fromApiCall<PcoGroupsLocation>(url,
query: query, apiVersion: kApiVersion);
}