PcoCalendarResourceQuestionQuery constructor

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

Implementation

PcoCalendarResourceQuestionQuery({
  /// 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 `kind`
  /// query on a specific kind, url example: ?where[kind]=string
  /// include a prefix of `<`, `<=`, `>`, `>=` to query by comparisons
  String? whereKind,

  /// 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,

  /// 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 (whereCreatedAt != null)
    where.add(PlanningCenterApiWhere.parse('created_at', whereCreatedAt));
  if (whereKind != null)
    where.add(PlanningCenterApiWhere.parse('kind', whereKind));
  if (whereUpdatedAt != null)
    where.add(PlanningCenterApiWhere.parse('updated_at', whereUpdatedAt));
}