mucke/lib/system/models/queue_item.dart

16 lines
291 B
Dart
Raw Normal View History

2020-12-13 12:37:08 +01:00
import 'song_model.dart';
2020-10-21 20:58:55 +02:00
class QueueItem {
2020-12-13 12:37:08 +01:00
QueueItem(
this.song, {
this.originalIndex,
this.type = QueueItemType.standard,
});
2020-10-21 20:58:55 +02:00
2020-12-13 12:37:08 +01:00
final SongModel song;
2020-10-21 20:58:55 +02:00
final int originalIndex;
final QueueItemType type;
}
2020-12-13 12:37:08 +01:00
enum QueueItemType { standard, predecessor, successor, added }