getAllFromSongAndArrangement static method

Future<PcoCollection<PcoServicesTag>> getAllFromSongAndArrangement(
  1. String songId,
  2. String arrangementId, {
  3. String? id,
  4. PcoServicesTagQuery? query,
})

Will get a PcoCollection containing ALL PcoServicesTag objects (expecting many) using a path like this: /services/v2/songs/$songId/arrangements/$arrangementId/tags

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<PcoServicesTag>> getAllFromSongAndArrangement(
  String songId,
  String arrangementId, {
  String? id,
  PcoServicesTagQuery? query,
}) async {
  query ??= PcoServicesTagQuery();
  query.getAll = true;

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