26 lines
702 B
Dart
26 lines
702 B
Dart
import 'package:equatable/equatable.dart';
|
|
|
|
import '../playlists/playlist_id.dart';
|
|
import 'base_search_content.dart';
|
|
|
|
/// Metadata related to a search query result (playlist)
|
|
class SearchPlaylist extends BaseSearchContent with EquatableMixin {
|
|
/// PlaylistId.
|
|
final PlaylistId playlistId;
|
|
|
|
/// Playlist title.
|
|
final String playlistTitle;
|
|
|
|
/// Playlist video count, cannot be greater than 50.
|
|
final int playlistVideoCount;
|
|
|
|
/// Initialize an instance of [SearchPlaylist]
|
|
SearchPlaylist(this.playlistId, this.playlistTitle, this.playlistVideoCount);
|
|
|
|
@override
|
|
String toString() => '[Playlist] $playlistTitle ($playlistId)';
|
|
|
|
@override
|
|
List<Object> get props => [playlistId];
|
|
}
|