findAllShaderIdsByPlaylistId method

  1. @override
Future<FindShaderIdsResponse> findAllShaderIdsByPlaylistId(
  1. String playlistId
)

Returns a FindShaderIdsResponse with all the shader id's for the playlist playlistId

Upon success a list of shader ids is provided and error is set to null

In case of error a ResponseError is set and no shader id list is provided

Implementation

@override
Future<FindShaderIdsResponse> findAllShaderIdsByPlaylistId(
    String playlistId) {
  return catchSqlError<FindShaderIdsResponse>(
      store.shaderDao
          .findIdsByPlaylist(playlistId)
          .then((shaderIds) => FindShaderIdsResponse(ids: shaderIds)),
      (sqle) => FindShaderIdsResponse(
          error: toResponseError(sqle,
              context: contextPlaylist, target: playlistId)),
      options);
}