PcoCheckInsPassQuery constructor

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

Implementation

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

  /// Query by `code`
  /// query on a specific code, url example: ?where[code]=string
  /// include a prefix of `<`, `<=`, `>`, `>=` to query by comparisons
  String? whereCode,

  /// 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 (includePerson) include.add('person');

  if (whereCode != null)
    where.add(PlanningCenterApiWhere.parse('code', whereCode));
}