youtube_explode/lib/src/channels/channel_about.dart

35 lines
711 B
Dart
Raw Normal View History

import 'package:freezed_annotation/freezed_annotation.dart';
2020-10-01 16:55:32 +02:00
import '../common/thumbnail.dart';
2020-11-01 15:05:19 +01:00
import 'channel_link.dart';
2020-10-01 16:55:32 +02:00
part 'channel_about.freezed.dart';
2020-10-01 16:55:32 +02:00
/// YouTube channel's about page metadata.
@freezed
class ChannelAbout with _$ChannelAbout {
const factory ChannelAbout(
/// Full channel description.
String? description,
2020-10-01 16:55:32 +02:00
/// Channel view count.
int? viewCount,
2020-10-01 16:55:32 +02:00
/// Channel join date.
/// Formatted as: Gen 01, 2000
String? joinDate,
2020-10-01 16:55:32 +02:00
/// Channel title.
String title,
2020-10-01 16:55:32 +02:00
/// Channel thumbnails.
List<Thumbnail> thumbnails,
2020-10-01 16:55:32 +02:00
/// Channel country.
String? country,
2020-10-01 16:55:32 +02:00
/// Channel links.
List<ChannelLink> channelLinks,
) = _ChannelAbout;
2020-10-01 16:55:32 +02:00
}