getAllFromEventTime static method
Will get a PcoCollection
containing ALL PcoCheckInsLocationEventTime objects (expecting many)
using a path like this: /check-ins/v2/event_times/$eventTimeId/location_event_times
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<PcoCheckInsLocationEventTime>>
getAllFromEventTime(
String eventTimeId, {
String? id,
PcoCheckInsLocationEventTimeQuery? query,
bool includeAllRelated = false,
bool includeEventTime = false,
bool includeLocation = false,
}) async {
query ??= PcoCheckInsLocationEventTimeQuery();
query.getAll = true;
if (includeAllRelated)
query.include.addAll(PcoCheckInsLocationEventTime.canInclude);
if (includeEventTime) query.include.add('event_time');
if (includeLocation) query.include.add('location');
var url = '/check-ins/v2/event_times/$eventTimeId/location_event_times';
if (id != null) url += '/$id';
return PcoCollection.fromApiCall<PcoCheckInsLocationEventTime>(url,
query: query, apiVersion: kApiVersion);
}