PcoCheckInsPersonEventQuery constructor

PcoCheckInsPersonEventQuery({
  1. bool includeEvent = false,
  2. bool includeFirstCheckIn = false,
  3. bool includeLastCheckIn = false,
  4. bool includePerson = false,
  5. bool includeAllRelated = false,
  6. bool reverse = false,
  7. int perPage = 25,
  8. int pageOffset = 0,
  9. Map<String, String> extraParams = const {},
  10. List<PlanningCenterApiWhere>? where,
  11. Iterable<String> filter = const <String>[],
  12. String? order,
  13. Iterable<String> include = const <String>[],
})

Implementation

PcoCheckInsPersonEventQuery({
  /// include associated event
  /// when true, adds `?include=event` to url
  bool includeEvent = false,

  /// include associated first_check_in
  /// when true, adds `?include=first_check_in` to url
  bool includeFirstCheckIn = false,

  /// include associated last_check_in
  /// when true, adds `?include=last_check_in` to url
  bool includeLastCheckIn = false,

  /// include associated person
  /// when true, adds `?include=person` to url
  bool includePerson = false,

  /// when true, adds `?include=event,first_check_in,last_check_in,person` to url parameters
  bool includeAllRelated = false,

  /// reverse the ordering
  bool reverse = false,

  // direct access to super class params
  super.perPage,
  super.pageOffset,
  super.extraParams,
  super.where,
  super.filter,
  super.order,
  super.include,
}) : super() {
  if (includeAllRelated || includeEvent) include.add('event');
  if (includeAllRelated || includeFirstCheckIn) include.add('first_check_in');
  if (includeAllRelated || includeLastCheckIn) include.add('last_check_in');
  if (includeAllRelated || includePerson) include.add('person');
}