findShaderIdsByPlaylistId method
Returns a FindShaderIdsResponse
with a list of shader ids.
from
: A 0 based index for results returnednum
: The total number of results
Upon success a list of shader ids is provided as well as the overall number of records in total (not the number of shader ids in the list, the number of total results). The error is set to null
In case of error a ResponseError
is set and no shader id list is
provided
Implementation
@override
Future<FindShaderIdsResponse> findShaderIdsByPlaylistId(String playlistId,
{int? from, int? num}) {
return catchSqlError<FindShaderIdsResponse>(
store.shaderDao
.findIdsByPlaylist(playlistId,
from: from, num: num ?? options.playlistShaderCount)
.then((shaderIds) => FindShaderIdsResponse(ids: shaderIds)),
(sqle) => FindShaderIdsResponse(
error: toResponseError(sqle,
context: contextPlaylist, target: playlistId)),
options);
}