PcoServicesSongQuery constructor
PcoServicesSongQuery({
- String? whereAuthor,
- String? whereCcliNumber,
- String? whereHidden,
- String? whereThemes,
- String? whereTitle,
- PcoServicesSongOrder? 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
PcoServicesSongQuery({
/// Query by `author`
/// query on a specific author, url example: ?where[author]=string
/// include a prefix of `<`, `<=`, `>`, `>=` to query by comparisons
String? whereAuthor,
/// Query by `ccli_number`
/// query on a specific ccli_number, url example: ?where[ccli_number]=1
/// include a prefix of `<`, `<=`, `>`, `>=` to query by comparisons
String? whereCcliNumber,
/// Query by `hidden`
/// query on a specific hidden, url example: ?where[hidden]=true
/// include a prefix of `<`, `<=`, `>`, `>=` to query by comparisons
String? whereHidden,
/// Query by `themes`
/// query on a specific themes, url example: ?where[themes]=string
/// include a prefix of `<`, `<=`, `>`, `>=` to query by comparisons
String? whereThemes,
/// Query by `title`
/// query on a specific title, url example: ?where[title]=string
/// include a prefix of `<`, `<=`, `>`, `>=` to query by comparisons
String? whereTitle,
PcoServicesSongOrder? 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 (whereAuthor != null)
where.add(PlanningCenterApiWhere.parse('author', whereAuthor));
if (whereCcliNumber != null)
where.add(PlanningCenterApiWhere.parse('ccli_number', whereCcliNumber));
if (whereHidden != null)
where.add(PlanningCenterApiWhere.parse('hidden', whereHidden));
if (whereThemes != null)
where.add(PlanningCenterApiWhere.parse('themes', whereThemes));
if (whereTitle != null)
where.add(PlanningCenterApiWhere.parse('title', whereTitle));
if (orderBy != null) order = orderString(orderBy, reverse: reverse);
}