getAllFromEventAndAttendance static method

Future<PcoCollection<PcoGroupsPerson>> getAllFromEventAndAttendance(
  1. String eventId,
  2. String attendanceId, {
  3. String? id,
  4. PcoGroupsPersonQuery? query,
})

Will get a PcoCollection containing ALL PcoGroupsPerson objects (expecting many) using a path like this: /groups/v2/events/$eventId/attendances/$attendanceId/person

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<PcoGroupsPerson>> getAllFromEventAndAttendance(
  String eventId,
  String attendanceId, {
  String? id,
  PcoGroupsPersonQuery? query,
}) async {
  query ??= PcoGroupsPersonQuery();
  query.getAll = true;

  var url = '/groups/v2/events/$eventId/attendances/$attendanceId/person';
  if (id != null) url += '/$id';
  return PcoCollection.fromApiCall<PcoGroupsPerson>(url,
      query: query, apiVersion: kApiVersion);
}