PcoCalendarTagGroupQuery constructor
PcoCalendarTagGroupQuery({
- bool includeEvents = false,
- bool includeTags = false,
- bool includeAllRelated = false,
- String? whereCreatedAt,
- String? whereName,
- String? whereUpdatedAt,
- PcoCalendarTagGroupFilter? filterBy,
- PcoCalendarTagGroupOrder? 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
PcoCalendarTagGroupQuery({
/// include associated events
/// when true, adds `?include=events` to url
bool includeEvents = false,
/// include associated tags
/// when true, adds `?include=tags` to url
bool includeTags = false,
/// when true, adds `?include=events,tags` to url parameters
bool includeAllRelated = false,
/// Query by `created_at`
/// query on a specific created_at, url example: ?where[created_at]=2000-01-01T12:00:00Z
/// include a prefix of `<`, `<=`, `>`, `>=` to query by comparisons
String? whereCreatedAt,
/// Query by `name`
/// query on a specific name, url example: ?where[name]=string
/// include a prefix of `<`, `<=`, `>`, `>=` to query by comparisons
String? whereName,
/// Query by `updated_at`
/// query on a specific updated_at, url example: ?where[updated_at]=2000-01-01T12:00:00Z
/// include a prefix of `<`, `<=`, `>`, `>=` to query by comparisons
String? whereUpdatedAt,
PcoCalendarTagGroupFilter? filterBy,
PcoCalendarTagGroupOrder? 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 || includeEvents) include.add('events');
if (includeAllRelated || includeTags) include.add('tags');
if (whereCreatedAt != null)
where.add(PlanningCenterApiWhere.parse('created_at', whereCreatedAt));
if (whereName != null)
where.add(PlanningCenterApiWhere.parse('name', whereName));
if (whereUpdatedAt != null)
where.add(PlanningCenterApiWhere.parse('updated_at', whereUpdatedAt));
if (orderBy != null) order = orderString(orderBy, reverse: reverse);
}