mirror of
https://github.com/TeamPiped/piped_dart.git
synced 2024-08-14 22:27:49 +00:00
Regenerate bindings.
This commit is contained in:
parent
abc390a2e1
commit
70f4ecc760
3 changed files with 47 additions and 19 deletions
|
@ -27,6 +27,7 @@ Name | Type | Description | Notes
|
|||
**uploaderAvatar** | **String** | The URL of the video's uploader's avatar. | [optional]
|
||||
**uploaderUrl** | **String** | The relative URL of the video's uploader. | [optional]
|
||||
**uploaderVerified** | **bool** | Whether the video's uploader is verified. | [optional]
|
||||
**views** | **int** | The number of views the video has. | [optional]
|
||||
**relatedStreams** | [**BuiltList<StreamItem>**](StreamItem.md) | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
|
|
@ -33,6 +33,7 @@ part 'video_info.g.dart';
|
|||
/// * [uploaderAvatar] - The URL of the video's uploader's avatar.
|
||||
/// * [uploaderUrl] - The relative URL of the video's uploader.
|
||||
/// * [uploaderVerified] - Whether the video's uploader is verified.
|
||||
/// * [views] - The number of views the video has.
|
||||
/// * [relatedStreams]
|
||||
abstract class VideoInfo implements Built<VideoInfo, VideoInfoBuilder> {
|
||||
@BuiltValueField(wireName: r'audioStreams')
|
||||
|
@ -108,6 +109,10 @@ abstract class VideoInfo implements Built<VideoInfo, VideoInfoBuilder> {
|
|||
@BuiltValueField(wireName: r'uploaderVerified')
|
||||
bool? get uploaderVerified;
|
||||
|
||||
/// The number of views the video has.
|
||||
@BuiltValueField(wireName: r'views')
|
||||
int? get views;
|
||||
|
||||
@BuiltValueField(wireName: r'relatedStreams')
|
||||
BuiltList<StreamItem>? get relatedStreams;
|
||||
|
||||
|
@ -247,6 +252,12 @@ class _$VideoInfoSerializer implements StructuredSerializer<VideoInfo> {
|
|||
..add(serializers.serialize(object.uploaderVerified,
|
||||
specifiedType: const FullType(bool)));
|
||||
}
|
||||
if (object.views != null) {
|
||||
result
|
||||
..add(r'views')
|
||||
..add(serializers.serialize(object.views,
|
||||
specifiedType: const FullType(int)));
|
||||
}
|
||||
if (object.relatedStreams != null) {
|
||||
result
|
||||
..add(r'relatedStreams')
|
||||
|
@ -363,6 +374,11 @@ class _$VideoInfoSerializer implements StructuredSerializer<VideoInfo> {
|
|||
specifiedType: const FullType(bool)) as bool;
|
||||
result.uploaderVerified = valueDes;
|
||||
break;
|
||||
case r'views':
|
||||
final valueDes = serializers.deserialize(value,
|
||||
specifiedType: const FullType(int)) as int;
|
||||
result.views = valueDes;
|
||||
break;
|
||||
case r'relatedStreams':
|
||||
final valueDes = serializers.deserialize(value,
|
||||
specifiedType: const FullType(BuiltList, [FullType(StreamItem)])) as BuiltList<StreamItem>;
|
||||
|
|
|
@ -46,6 +46,8 @@ class _$VideoInfo extends VideoInfo {
|
|||
@override
|
||||
final bool? uploaderVerified;
|
||||
@override
|
||||
final int? views;
|
||||
@override
|
||||
final BuiltList<StreamItem>? relatedStreams;
|
||||
|
||||
factory _$VideoInfo([void Function(VideoInfoBuilder)? updates]) =>
|
||||
|
@ -71,6 +73,7 @@ class _$VideoInfo extends VideoInfo {
|
|||
this.uploaderAvatar,
|
||||
this.uploaderUrl,
|
||||
this.uploaderVerified,
|
||||
this.views,
|
||||
this.relatedStreams})
|
||||
: super._();
|
||||
|
||||
|
@ -104,6 +107,7 @@ class _$VideoInfo extends VideoInfo {
|
|||
uploaderAvatar == other.uploaderAvatar &&
|
||||
uploaderUrl == other.uploaderUrl &&
|
||||
uploaderVerified == other.uploaderVerified &&
|
||||
views == other.views &&
|
||||
relatedStreams == other.relatedStreams;
|
||||
}
|
||||
|
||||
|
@ -127,25 +131,25 @@ class _$VideoInfo extends VideoInfo {
|
|||
$jc(
|
||||
$jc(
|
||||
$jc(
|
||||
$jc($jc(0, audioStreams.hashCode),
|
||||
videoStreams.hashCode),
|
||||
description.hashCode),
|
||||
dislikes.hashCode),
|
||||
duration.hashCode),
|
||||
hls.hashCode),
|
||||
lbryId.hashCode),
|
||||
likes.hashCode),
|
||||
livestream.hashCode),
|
||||
proxyUrl.hashCode),
|
||||
subtitles.hashCode),
|
||||
dash.hashCode),
|
||||
thumbnailUrl.hashCode),
|
||||
title.hashCode),
|
||||
uploadDate.hashCode),
|
||||
uploader.hashCode),
|
||||
uploaderAvatar.hashCode),
|
||||
uploaderUrl.hashCode),
|
||||
uploaderVerified.hashCode),
|
||||
$jc($jc($jc(0, audioStreams.hashCode), videoStreams.hashCode),
|
||||
description.hashCode),
|
||||
dislikes.hashCode),
|
||||
duration.hashCode),
|
||||
hls.hashCode),
|
||||
lbryId.hashCode),
|
||||
likes.hashCode),
|
||||
livestream.hashCode),
|
||||
proxyUrl.hashCode),
|
||||
subtitles.hashCode),
|
||||
dash.hashCode),
|
||||
thumbnailUrl.hashCode),
|
||||
title.hashCode),
|
||||
uploadDate.hashCode),
|
||||
uploader.hashCode),
|
||||
uploaderAvatar.hashCode),
|
||||
uploaderUrl.hashCode),
|
||||
uploaderVerified.hashCode),
|
||||
views.hashCode),
|
||||
relatedStreams.hashCode));
|
||||
}
|
||||
|
||||
|
@ -171,6 +175,7 @@ class _$VideoInfo extends VideoInfo {
|
|||
..add('uploaderAvatar', uploaderAvatar)
|
||||
..add('uploaderUrl', uploaderUrl)
|
||||
..add('uploaderVerified', uploaderVerified)
|
||||
..add('views', views)
|
||||
..add('relatedStreams', relatedStreams))
|
||||
.toString();
|
||||
}
|
||||
|
@ -263,6 +268,10 @@ class VideoInfoBuilder implements Builder<VideoInfo, VideoInfoBuilder> {
|
|||
set uploaderVerified(bool? uploaderVerified) =>
|
||||
_$this._uploaderVerified = uploaderVerified;
|
||||
|
||||
int? _views;
|
||||
int? get views => _$this._views;
|
||||
set views(int? views) => _$this._views = views;
|
||||
|
||||
ListBuilder<StreamItem>? _relatedStreams;
|
||||
ListBuilder<StreamItem> get relatedStreams =>
|
||||
_$this._relatedStreams ??= new ListBuilder<StreamItem>();
|
||||
|
@ -295,6 +304,7 @@ class VideoInfoBuilder implements Builder<VideoInfo, VideoInfoBuilder> {
|
|||
_uploaderAvatar = $v.uploaderAvatar;
|
||||
_uploaderUrl = $v.uploaderUrl;
|
||||
_uploaderVerified = $v.uploaderVerified;
|
||||
_views = $v.views;
|
||||
_relatedStreams = $v.relatedStreams?.toBuilder();
|
||||
_$v = null;
|
||||
}
|
||||
|
@ -337,6 +347,7 @@ class VideoInfoBuilder implements Builder<VideoInfo, VideoInfoBuilder> {
|
|||
uploaderAvatar: uploaderAvatar,
|
||||
uploaderUrl: uploaderUrl,
|
||||
uploaderVerified: uploaderVerified,
|
||||
views: views,
|
||||
relatedStreams: _relatedStreams?.build());
|
||||
} catch (_) {
|
||||
late String _$failedField;
|
||||
|
|
Loading…
Reference in a new issue