2020-06-13 22:54:53 +02:00
|
|
|
import '../playlists/playlist_id.dart';
|
|
|
|
|
|
|
|
/// Metadata related to a search query result (playlist)
|
|
|
|
class SearchPlaylist {
|
|
|
|
/// PlaylistId.
|
|
|
|
final PlaylistId playlistId;
|
|
|
|
|
|
|
|
/// Playlist title.
|
|
|
|
final String playlistTitle;
|
|
|
|
|
|
|
|
/// Playlist video count, cannot be greater than 50.
|
|
|
|
final int playlistVideoCount;
|
|
|
|
|
2020-06-14 12:14:21 +02:00
|
|
|
/// Initialize an instance of [SearchPlaylist]
|
2020-06-13 22:54:53 +02:00
|
|
|
SearchPlaylist(this.playlistId, this.playlistTitle, this.playlistVideoCount);
|
|
|
|
|
|
|
|
@override
|
|
|
|
String toString() => '(Playlist) $playlistTitle ($playlistId)';
|
|
|
|
}
|