deletePlaylistById method
Deletes a Playlist
by playlistId
On success the Playlist
identified by playlistId
is deleted
In case of error a ResponseError
is set on DeletePlaylistResponse
Implementation
@override
Future<DeletePlaylistResponse> deletePlaylistById(String playlistId) {
return catchSqlError<DeletePlaylistResponse>(
store.playlistDao
.deleteById(playlistId,
foreignKeysEnabled: options.foreignKeysEnabled)
.then((reponse) => DeletePlaylistResponse()),
(sqle) => DeletePlaylistResponse(
error: toResponseError(sqle,
context: contextPlaylist, target: playlistId)),
options);
}