2021-05-02 12:39:31 +02:00
|
|
|
import '../entities/song.dart';
|
|
|
|
import '../repositories/music_data_repository.dart';
|
|
|
|
|
|
|
|
class SetSongBlocked {
|
|
|
|
SetSongBlocked(this._musicDataRepository);
|
|
|
|
|
|
|
|
final MusicDataRepository _musicDataRepository;
|
|
|
|
|
|
|
|
Future<void> call(Song song, bool blocked) async {
|
2021-10-08 19:13:10 +02:00
|
|
|
// TODO: skip to next song automatically?
|
2021-05-02 12:39:31 +02:00
|
|
|
await _musicDataRepository.setSongBlocked(song, blocked);
|
|
|
|
}
|
|
|
|
}
|