2023-10-19 12:34:22 +00:00
|
|
|
import 'package:isar/isar.dart';
|
|
|
|
|
2023-10-20 23:12:33 +00:00
|
|
|
@collection
|
|
|
|
class Track {
|
|
|
|
Id id = Isar.autoIncrement;
|
|
|
|
final String trackId;
|
|
|
|
final String title;
|
|
|
|
final String albumId;
|
|
|
|
final List<String> artistIds;
|
|
|
|
//final DeezerImageDetails albumArt;
|
|
|
|
final int? trackNumber;
|
|
|
|
final bool offline;
|
|
|
|
//final Lyrics lyrics;
|
|
|
|
final bool favorite;
|
|
|
|
final int? diskNumber;
|
|
|
|
final bool explicit;
|
|
|
|
|
|
|
|
Track({
|
|
|
|
required this.trackId,
|
|
|
|
required this.title,
|
|
|
|
required this.albumId,
|
|
|
|
required this.artistIds,
|
|
|
|
//required this.albumArt,
|
|
|
|
required this.trackNumber,
|
|
|
|
//required this.lyrics,
|
|
|
|
required this.favorite,
|
|
|
|
required this.diskNumber,
|
|
|
|
required this.explicit,
|
|
|
|
this.offline = true,
|
|
|
|
});
|
|
|
|
}
|