getAllFromSong static method

Will get a PcoCollection containing ALL PcoServicesSongSchedule objects (expecting many) using a path like this: /services/v2/songs/$songId/song_schedules

Available Query Filters:

  • three_most_recent

Additional options may be specified by using the query argument, but some query options are also available as boolean flags in this function call too.

This function forces the query.getAll to be true.

Implementation

static Future<PcoCollection<PcoServicesSongSchedule>> getAllFromSong(
  String songId, {
  String? id,
  PcoServicesSongScheduleQuery? query,
}) async {
  query ??= PcoServicesSongScheduleQuery();
  query.getAll = true;

  var url = '/services/v2/songs/$songId/song_schedules';
  if (id != null) url += '/$id';
  return PcoCollection.fromApiCall<PcoServicesSongSchedule>(url,
      query: query, apiVersion: kApiVersion);
}