PcoGroupsGroupQuery constructor
PcoGroupsGroupQuery(
- {bool includeGroupType = false,
- bool includeLocation = false,
- bool includeAllRelated = false,
- String? whereArchiveStatus,
- PcoGroupsGroupFilter? filterBy,
- PcoGroupsGroupOrder? orderBy,
- bool reverse = false,
- int perPage = 25,
- int pageOffset = 0,
- Map<
String, String> extraParams = const {}, - List<
PlanningCenterApiWhere> ? where, - Iterable<
String> filter = const <String>[], - String? order,
- Iterable<
String> include = const <String>[]}
Implementation
PcoGroupsGroupQuery({
/// include associated group_type
/// when true, adds `?include=group_type` to url
bool includeGroupType = false,
/// include associated location
/// when true, adds `?include=location` to url
bool includeLocation = false,
/// when true, adds `?include=group_type,location` to url parameters
bool includeAllRelated = false,
/// Query by `archive_status`
/// Used for querying only. Defaults to `not_archived`., url example: ?where[archive_status]=value
/// include a prefix of `<`, `<=`, `>`, `>=` to query by comparisons
String? whereArchiveStatus,
PcoGroupsGroupFilter? filterBy,
PcoGroupsGroupOrder? orderBy,
/// 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 (filterBy != null) filter.add(filterString(filterBy));
if (includeAllRelated || includeGroupType) include.add('group_type');
if (includeAllRelated || includeLocation) include.add('location');
if (whereArchiveStatus != null)
where.add(
PlanningCenterApiWhere.parse('archive_status', whereArchiveStatus));
if (orderBy != null) order = orderString(orderBy, reverse: reverse);
}