mirror of
https://github.com/TeamPiped/piped_dart.git
synced 2024-08-14 22:27:49 +00:00
230 lines
7.1 KiB
Dart
230 lines
7.1 KiB
Dart
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||
|
// @dart=2.7
|
||
|
|
||
|
part of 'stream_item.dart';
|
||
|
|
||
|
// **************************************************************************
|
||
|
// BuiltValueGenerator
|
||
|
// **************************************************************************
|
||
|
|
||
|
class _$StreamItem extends StreamItem {
|
||
|
@override
|
||
|
final int duration;
|
||
|
@override
|
||
|
final String thumbnail;
|
||
|
@override
|
||
|
final String title;
|
||
|
@override
|
||
|
final int uploaded;
|
||
|
@override
|
||
|
final String uploadedDate;
|
||
|
@override
|
||
|
final String uploaderAvatar;
|
||
|
@override
|
||
|
final String uploaderName;
|
||
|
@override
|
||
|
final String uploaderUrl;
|
||
|
@override
|
||
|
final bool uploaderVerified;
|
||
|
@override
|
||
|
final String url;
|
||
|
@override
|
||
|
final int views;
|
||
|
|
||
|
factory _$StreamItem([void Function(StreamItemBuilder) updates]) =>
|
||
|
(new StreamItemBuilder()..update(updates)).build();
|
||
|
|
||
|
_$StreamItem._(
|
||
|
{this.duration,
|
||
|
this.thumbnail,
|
||
|
this.title,
|
||
|
this.uploaded,
|
||
|
this.uploadedDate,
|
||
|
this.uploaderAvatar,
|
||
|
this.uploaderName,
|
||
|
this.uploaderUrl,
|
||
|
this.uploaderVerified,
|
||
|
this.url,
|
||
|
this.views})
|
||
|
: super._() {
|
||
|
BuiltValueNullFieldError.checkNotNull(duration, 'StreamItem', 'duration');
|
||
|
BuiltValueNullFieldError.checkNotNull(thumbnail, 'StreamItem', 'thumbnail');
|
||
|
BuiltValueNullFieldError.checkNotNull(title, 'StreamItem', 'title');
|
||
|
BuiltValueNullFieldError.checkNotNull(url, 'StreamItem', 'url');
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
StreamItem rebuild(void Function(StreamItemBuilder) updates) =>
|
||
|
(toBuilder()..update(updates)).build();
|
||
|
|
||
|
@override
|
||
|
StreamItemBuilder toBuilder() => new StreamItemBuilder()..replace(this);
|
||
|
|
||
|
@override
|
||
|
bool operator ==(Object other) {
|
||
|
if (identical(other, this)) return true;
|
||
|
return other is StreamItem &&
|
||
|
duration == other.duration &&
|
||
|
thumbnail == other.thumbnail &&
|
||
|
title == other.title &&
|
||
|
uploaded == other.uploaded &&
|
||
|
uploadedDate == other.uploadedDate &&
|
||
|
uploaderAvatar == other.uploaderAvatar &&
|
||
|
uploaderName == other.uploaderName &&
|
||
|
uploaderUrl == other.uploaderUrl &&
|
||
|
uploaderVerified == other.uploaderVerified &&
|
||
|
url == other.url &&
|
||
|
views == other.views;
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
int get hashCode {
|
||
|
return $jf($jc(
|
||
|
$jc(
|
||
|
$jc(
|
||
|
$jc(
|
||
|
$jc(
|
||
|
$jc(
|
||
|
$jc(
|
||
|
$jc(
|
||
|
$jc(
|
||
|
$jc($jc(0, duration.hashCode),
|
||
|
thumbnail.hashCode),
|
||
|
title.hashCode),
|
||
|
uploaded.hashCode),
|
||
|
uploadedDate.hashCode),
|
||
|
uploaderAvatar.hashCode),
|
||
|
uploaderName.hashCode),
|
||
|
uploaderUrl.hashCode),
|
||
|
uploaderVerified.hashCode),
|
||
|
url.hashCode),
|
||
|
views.hashCode));
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
String toString() {
|
||
|
return (newBuiltValueToStringHelper('StreamItem')
|
||
|
..add('duration', duration)
|
||
|
..add('thumbnail', thumbnail)
|
||
|
..add('title', title)
|
||
|
..add('uploaded', uploaded)
|
||
|
..add('uploadedDate', uploadedDate)
|
||
|
..add('uploaderAvatar', uploaderAvatar)
|
||
|
..add('uploaderName', uploaderName)
|
||
|
..add('uploaderUrl', uploaderUrl)
|
||
|
..add('uploaderVerified', uploaderVerified)
|
||
|
..add('url', url)
|
||
|
..add('views', views))
|
||
|
.toString();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class StreamItemBuilder implements Builder<StreamItem, StreamItemBuilder> {
|
||
|
_$StreamItem _$v;
|
||
|
|
||
|
int _duration;
|
||
|
int get duration => _$this._duration;
|
||
|
set duration(int duration) => _$this._duration = duration;
|
||
|
|
||
|
String _thumbnail;
|
||
|
String get thumbnail => _$this._thumbnail;
|
||
|
set thumbnail(String thumbnail) => _$this._thumbnail = thumbnail;
|
||
|
|
||
|
String _title;
|
||
|
String get title => _$this._title;
|
||
|
set title(String title) => _$this._title = title;
|
||
|
|
||
|
int _uploaded;
|
||
|
int get uploaded => _$this._uploaded;
|
||
|
set uploaded(int uploaded) => _$this._uploaded = uploaded;
|
||
|
|
||
|
String _uploadedDate;
|
||
|
String get uploadedDate => _$this._uploadedDate;
|
||
|
set uploadedDate(String uploadedDate) => _$this._uploadedDate = uploadedDate;
|
||
|
|
||
|
String _uploaderAvatar;
|
||
|
String get uploaderAvatar => _$this._uploaderAvatar;
|
||
|
set uploaderAvatar(String uploaderAvatar) =>
|
||
|
_$this._uploaderAvatar = uploaderAvatar;
|
||
|
|
||
|
String _uploaderName;
|
||
|
String get uploaderName => _$this._uploaderName;
|
||
|
set uploaderName(String uploaderName) => _$this._uploaderName = uploaderName;
|
||
|
|
||
|
String _uploaderUrl;
|
||
|
String get uploaderUrl => _$this._uploaderUrl;
|
||
|
set uploaderUrl(String uploaderUrl) => _$this._uploaderUrl = uploaderUrl;
|
||
|
|
||
|
bool _uploaderVerified;
|
||
|
bool get uploaderVerified => _$this._uploaderVerified;
|
||
|
set uploaderVerified(bool uploaderVerified) =>
|
||
|
_$this._uploaderVerified = uploaderVerified;
|
||
|
|
||
|
String _url;
|
||
|
String get url => _$this._url;
|
||
|
set url(String url) => _$this._url = url;
|
||
|
|
||
|
int _views;
|
||
|
int get views => _$this._views;
|
||
|
set views(int views) => _$this._views = views;
|
||
|
|
||
|
StreamItemBuilder() {
|
||
|
StreamItem._initializeBuilder(this);
|
||
|
}
|
||
|
|
||
|
StreamItemBuilder get _$this {
|
||
|
final $v = _$v;
|
||
|
if ($v != null) {
|
||
|
_duration = $v.duration;
|
||
|
_thumbnail = $v.thumbnail;
|
||
|
_title = $v.title;
|
||
|
_uploaded = $v.uploaded;
|
||
|
_uploadedDate = $v.uploadedDate;
|
||
|
_uploaderAvatar = $v.uploaderAvatar;
|
||
|
_uploaderName = $v.uploaderName;
|
||
|
_uploaderUrl = $v.uploaderUrl;
|
||
|
_uploaderVerified = $v.uploaderVerified;
|
||
|
_url = $v.url;
|
||
|
_views = $v.views;
|
||
|
_$v = null;
|
||
|
}
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
void replace(StreamItem other) {
|
||
|
ArgumentError.checkNotNull(other, 'other');
|
||
|
_$v = other as _$StreamItem;
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
void update(void Function(StreamItemBuilder) updates) {
|
||
|
if (updates != null) updates(this);
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
_$StreamItem build() {
|
||
|
final _$result = _$v ??
|
||
|
new _$StreamItem._(
|
||
|
duration: BuiltValueNullFieldError.checkNotNull(
|
||
|
duration, 'StreamItem', 'duration'),
|
||
|
thumbnail: BuiltValueNullFieldError.checkNotNull(
|
||
|
thumbnail, 'StreamItem', 'thumbnail'),
|
||
|
title: BuiltValueNullFieldError.checkNotNull(
|
||
|
title, 'StreamItem', 'title'),
|
||
|
uploaded: uploaded,
|
||
|
uploadedDate: uploadedDate,
|
||
|
uploaderAvatar: uploaderAvatar,
|
||
|
uploaderName: uploaderName,
|
||
|
uploaderUrl: uploaderUrl,
|
||
|
uploaderVerified: uploaderVerified,
|
||
|
url:
|
||
|
BuiltValueNullFieldError.checkNotNull(url, 'StreamItem', 'url'),
|
||
|
views: views);
|
||
|
replace(_$result);
|
||
|
return _$result;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new
|