mucke/lib/domain/repositories/persistent_player_state_repository.dart

18 lines
550 B
Dart
Raw Normal View History

2020-12-21 11:50:46 +01:00
import '../entities/loop_mode.dart';
2021-02-26 22:07:18 +01:00
import '../entities/queue_item.dart';
2020-12-21 11:57:30 +01:00
import '../entities/shuffle_mode.dart';
2020-12-21 11:50:46 +01:00
import '../entities/song.dart';
abstract class PlayerStateRepository {
Stream<List<Song>> get queueStream;
Stream<int> get currentIndexStream;
Stream<Song> get currentSongStream;
2020-12-21 11:50:46 +01:00
Stream<LoopMode> get loopModeStream;
2020-12-21 11:57:30 +01:00
Stream<ShuffleMode> get shuffleModeStream;
2021-02-26 22:07:18 +01:00
void setShuffleMode(ShuffleMode shuffleMode);
void setLoopMode(LoopMode loopMode);
void setQueue(List<QueueItem> queue);
void setCurrentIndex(int index);
2020-12-21 11:50:46 +01:00
}