30 lines
750 B
Dart
30 lines
750 B
Dart
import '../videos/video_id.dart';
|
|
|
|
/// Metadata related to a search query result (video).
|
|
class SearchVideo {
|
|
/// VideoId.
|
|
final VideoId videoId;
|
|
|
|
/// Video title.
|
|
final String videoTitle;
|
|
|
|
/// Video author.
|
|
final String videoAuthor;
|
|
|
|
/// Video description snippet. (Part of the full description if too long)
|
|
final String videoDescriptionSnippet;
|
|
|
|
/// Video duration as String, HH:MM:SS
|
|
final String videoDuration;
|
|
|
|
/// Video View Count
|
|
final int videoViewCount;
|
|
|
|
/// Initialize a [SearchVideo] instance.
|
|
const SearchVideo(this.videoId, this.videoTitle, this.videoAuthor,
|
|
this.videoDescriptionSnippet, this.videoDuration, this.videoViewCount);
|
|
|
|
@override
|
|
String toString() => '(Video) $videoTitle ($videoId)';
|
|
}
|