mucke/lib/domain/entities/song.dart

46 lines
932 B
Dart
Raw Normal View History

2020-03-24 22:17:03 +01:00
import 'package:equatable/equatable.dart';
2020-03-28 14:35:41 +01:00
import 'package:meta/meta.dart';
2020-03-24 22:17:03 +01:00
class Song extends Equatable {
2020-04-11 14:27:49 +02:00
const Song({
2020-03-28 14:35:41 +01:00
@required this.album,
@required this.artist,
2020-09-19 17:08:48 +02:00
@required this.blocked,
@required this.duration,
@required this.path,
@required this.title,
this.albumArtPath,
this.discNumber,
this.next,
this.previous,
2020-03-28 14:35:41 +01:00
this.trackNumber,
this.likeCount,
this.skipCount,
this.playCount,
2020-03-28 14:35:41 +01:00
});
2020-03-24 22:17:03 +01:00
final String album;
final String artist;
/// Is this song blocked in shuffle mode?
final bool blocked;
2020-04-11 14:27:49 +02:00
/// Duration in milliseconds.
final int duration;
final String path;
final String title;
final int likeCount;
final int skipCount;
final int playCount;
final String albumArtPath;
final int discNumber;
final String next;
final String previous;
2020-04-11 14:27:49 +02:00
final int trackNumber;
2020-03-24 22:17:03 +01:00
@override
2020-11-15 16:36:50 +01:00
List<Object> get props => [title, album, artist, blocked];
2020-03-24 22:17:03 +01:00
}