Add generated files.

This commit is contained in:
FireMasterK 2022-02-06 12:42:24 +00:00
parent d0203d7c63
commit a8612fdad7
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD
7 changed files with 1802 additions and 0 deletions

View File

@ -0,0 +1,207 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'channel_info.dart';
// **************************************************************************
// BuiltValueGenerator
// **************************************************************************
class _$ChannelInfo extends ChannelInfo {
@override
final String? avatarUrl;
@override
final String? bannerUrl;
@override
final String? description;
@override
final String? id;
@override
final String? name;
@override
final String? nextpage;
@override
final BuiltList<StreamItem>? relatedStreams;
@override
final int? subscriberCount;
@override
final bool? verified;
factory _$ChannelInfo([void Function(ChannelInfoBuilder)? updates]) =>
(new ChannelInfoBuilder()..update(updates)).build();
_$ChannelInfo._(
{this.avatarUrl,
this.bannerUrl,
this.description,
this.id,
this.name,
this.nextpage,
this.relatedStreams,
this.subscriberCount,
this.verified})
: super._();
@override
ChannelInfo rebuild(void Function(ChannelInfoBuilder) updates) =>
(toBuilder()..update(updates)).build();
@override
ChannelInfoBuilder toBuilder() => new ChannelInfoBuilder()..replace(this);
@override
bool operator ==(Object other) {
if (identical(other, this)) return true;
return other is ChannelInfo &&
avatarUrl == other.avatarUrl &&
bannerUrl == other.bannerUrl &&
description == other.description &&
id == other.id &&
name == other.name &&
nextpage == other.nextpage &&
relatedStreams == other.relatedStreams &&
subscriberCount == other.subscriberCount &&
verified == other.verified;
}
@override
int get hashCode {
return $jf($jc(
$jc(
$jc(
$jc(
$jc(
$jc(
$jc(
$jc($jc(0, avatarUrl.hashCode),
bannerUrl.hashCode),
description.hashCode),
id.hashCode),
name.hashCode),
nextpage.hashCode),
relatedStreams.hashCode),
subscriberCount.hashCode),
verified.hashCode));
}
@override
String toString() {
return (newBuiltValueToStringHelper('ChannelInfo')
..add('avatarUrl', avatarUrl)
..add('bannerUrl', bannerUrl)
..add('description', description)
..add('id', id)
..add('name', name)
..add('nextpage', nextpage)
..add('relatedStreams', relatedStreams)
..add('subscriberCount', subscriberCount)
..add('verified', verified))
.toString();
}
}
class ChannelInfoBuilder implements Builder<ChannelInfo, ChannelInfoBuilder> {
_$ChannelInfo? _$v;
String? _avatarUrl;
String? get avatarUrl => _$this._avatarUrl;
set avatarUrl(String? avatarUrl) => _$this._avatarUrl = avatarUrl;
String? _bannerUrl;
String? get bannerUrl => _$this._bannerUrl;
set bannerUrl(String? bannerUrl) => _$this._bannerUrl = bannerUrl;
String? _description;
String? get description => _$this._description;
set description(String? description) => _$this._description = description;
String? _id;
String? get id => _$this._id;
set id(String? id) => _$this._id = id;
String? _name;
String? get name => _$this._name;
set name(String? name) => _$this._name = name;
String? _nextpage;
String? get nextpage => _$this._nextpage;
set nextpage(String? nextpage) => _$this._nextpage = nextpage;
ListBuilder<StreamItem>? _relatedStreams;
ListBuilder<StreamItem> get relatedStreams =>
_$this._relatedStreams ??= new ListBuilder<StreamItem>();
set relatedStreams(ListBuilder<StreamItem>? relatedStreams) =>
_$this._relatedStreams = relatedStreams;
int? _subscriberCount;
int? get subscriberCount => _$this._subscriberCount;
set subscriberCount(int? subscriberCount) =>
_$this._subscriberCount = subscriberCount;
bool? _verified;
bool? get verified => _$this._verified;
set verified(bool? verified) => _$this._verified = verified;
ChannelInfoBuilder() {
ChannelInfo._defaults(this);
}
ChannelInfoBuilder get _$this {
final $v = _$v;
if ($v != null) {
_avatarUrl = $v.avatarUrl;
_bannerUrl = $v.bannerUrl;
_description = $v.description;
_id = $v.id;
_name = $v.name;
_nextpage = $v.nextpage;
_relatedStreams = $v.relatedStreams?.toBuilder();
_subscriberCount = $v.subscriberCount;
_verified = $v.verified;
_$v = null;
}
return this;
}
@override
void replace(ChannelInfo other) {
ArgumentError.checkNotNull(other, 'other');
_$v = other as _$ChannelInfo;
}
@override
void update(void Function(ChannelInfoBuilder)? updates) {
if (updates != null) updates(this);
}
@override
_$ChannelInfo build() {
_$ChannelInfo _$result;
try {
_$result = _$v ??
new _$ChannelInfo._(
avatarUrl: avatarUrl,
bannerUrl: bannerUrl,
description: description,
id: id,
name: name,
nextpage: nextpage,
relatedStreams: _relatedStreams?.build(),
subscriberCount: subscriberCount,
verified: verified);
} catch (_) {
late String _$failedField;
try {
_$failedField = 'relatedStreams';
_relatedStreams?.build();
} catch (e) {
throw new BuiltValueNestedFieldError(
'ChannelInfo', _$failedField, e.toString());
}
rethrow;
}
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

View File

@ -0,0 +1,103 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'exception_error.dart';
// **************************************************************************
// BuiltValueGenerator
// **************************************************************************
class _$ExceptionError extends ExceptionError {
@override
final String error;
@override
final String message;
factory _$ExceptionError([void Function(ExceptionErrorBuilder)? updates]) =>
(new ExceptionErrorBuilder()..update(updates)).build();
_$ExceptionError._({required this.error, required this.message}) : super._() {
BuiltValueNullFieldError.checkNotNull(error, 'ExceptionError', 'error');
BuiltValueNullFieldError.checkNotNull(message, 'ExceptionError', 'message');
}
@override
ExceptionError rebuild(void Function(ExceptionErrorBuilder) updates) =>
(toBuilder()..update(updates)).build();
@override
ExceptionErrorBuilder toBuilder() =>
new ExceptionErrorBuilder()..replace(this);
@override
bool operator ==(Object other) {
if (identical(other, this)) return true;
return other is ExceptionError &&
error == other.error &&
message == other.message;
}
@override
int get hashCode {
return $jf($jc($jc(0, error.hashCode), message.hashCode));
}
@override
String toString() {
return (newBuiltValueToStringHelper('ExceptionError')
..add('error', error)
..add('message', message))
.toString();
}
}
class ExceptionErrorBuilder
implements Builder<ExceptionError, ExceptionErrorBuilder> {
_$ExceptionError? _$v;
String? _error;
String? get error => _$this._error;
set error(String? error) => _$this._error = error;
String? _message;
String? get message => _$this._message;
set message(String? message) => _$this._message = message;
ExceptionErrorBuilder() {
ExceptionError._defaults(this);
}
ExceptionErrorBuilder get _$this {
final $v = _$v;
if ($v != null) {
_error = $v.error;
_message = $v.message;
_$v = null;
}
return this;
}
@override
void replace(ExceptionError other) {
ArgumentError.checkNotNull(other, 'other');
_$v = other as _$ExceptionError;
}
@override
void update(void Function(ExceptionErrorBuilder)? updates) {
if (updates != null) updates(this);
}
@override
_$ExceptionError build() {
final _$result = _$v ??
new _$ExceptionError._(
error: BuiltValueNullFieldError.checkNotNull(
error, 'ExceptionError', 'error'),
message: BuiltValueNullFieldError.checkNotNull(
message, 'ExceptionError', 'message'));
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

View File

@ -0,0 +1,805 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'regions.dart';
// **************************************************************************
// BuiltValueGenerator
// **************************************************************************
const Regions _$DZ = const Regions._('DZ');
const Regions _$AR = const Regions._('AR');
const Regions _$AU = const Regions._('AU');
const Regions _$AT = const Regions._('AT');
const Regions _$AZ = const Regions._('AZ');
const Regions _$BH = const Regions._('BH');
const Regions _$BD = const Regions._('BD');
const Regions _$BY = const Regions._('BY');
const Regions _$BE = const Regions._('BE');
const Regions _$BO = const Regions._('BO');
const Regions _$BA = const Regions._('BA');
const Regions _$BR = const Regions._('BR');
const Regions _$BG = const Regions._('BG');
const Regions _$CA = const Regions._('CA');
const Regions _$CL = const Regions._('CL');
const Regions _$CO = const Regions._('CO');
const Regions _$CR = const Regions._('CR');
const Regions _$HR = const Regions._('HR');
const Regions _$CY = const Regions._('CY');
const Regions _$CZ = const Regions._('CZ');
const Regions _$DK = const Regions._('DK');
const Regions _$DO = const Regions._('DO');
const Regions _$EC = const Regions._('EC');
const Regions _$EG = const Regions._('EG');
const Regions _$SV = const Regions._('SV');
const Regions _$EE = const Regions._('EE');
const Regions _$FI = const Regions._('FI');
const Regions _$FR = const Regions._('FR');
const Regions _$GE = const Regions._('GE');
const Regions _$DE = const Regions._('DE');
const Regions _$GH = const Regions._('GH');
const Regions _$GR = const Regions._('GR');
const Regions _$GT = const Regions._('GT');
const Regions _$HN = const Regions._('HN');
const Regions _$HK = const Regions._('HK');
const Regions _$HU = const Regions._('HU');
const Regions _$IS = const Regions._('IS');
const Regions _$IN = const Regions._('IN');
const Regions _$ID = const Regions._('ID');
const Regions _$IQ = const Regions._('IQ');
const Regions _$IE = const Regions._('IE');
const Regions _$IL = const Regions._('IL');
const Regions _$IT = const Regions._('IT');
const Regions _$JM = const Regions._('JM');
const Regions _$JP = const Regions._('JP');
const Regions _$JO = const Regions._('JO');
const Regions _$KZ = const Regions._('KZ');
const Regions _$KE = const Regions._('KE');
const Regions _$KW = const Regions._('KW');
const Regions _$LV = const Regions._('LV');
const Regions _$LB = const Regions._('LB');
const Regions _$LY = const Regions._('LY');
const Regions _$LI = const Regions._('LI');
const Regions _$LT = const Regions._('LT');
const Regions _$LU = const Regions._('LU');
const Regions _$MY = const Regions._('MY');
const Regions _$MT = const Regions._('MT');
const Regions _$MX = const Regions._('MX');
const Regions _$ME = const Regions._('ME');
const Regions _$MA = const Regions._('MA');
const Regions _$NP = const Regions._('NP');
const Regions _$NL = const Regions._('NL');
const Regions _$NZ = const Regions._('NZ');
const Regions _$NI = const Regions._('NI');
const Regions _$NG = const Regions._('NG');
const Regions _$MK = const Regions._('MK');
const Regions _$NO = const Regions._('NO');
const Regions _$OM = const Regions._('OM');
const Regions _$PK = const Regions._('PK');
const Regions _$PA = const Regions._('PA');
const Regions _$PG = const Regions._('PG');
const Regions _$PY = const Regions._('PY');
const Regions _$PE = const Regions._('PE');
const Regions _$PH = const Regions._('PH');
const Regions _$PL = const Regions._('PL');
const Regions _$PT = const Regions._('PT');
const Regions _$PR = const Regions._('PR');
const Regions _$QA = const Regions._('QA');
const Regions _$RO = const Regions._('RO');
const Regions _$RU = const Regions._('RU');
const Regions _$SA = const Regions._('SA');
const Regions _$SN = const Regions._('SN');
const Regions _$RS = const Regions._('RS');
const Regions _$SG = const Regions._('SG');
const Regions _$SK = const Regions._('SK');
const Regions _$SI = const Regions._('SI');
const Regions _$ZA = const Regions._('ZA');
const Regions _$KR = const Regions._('KR');
const Regions _$ES = const Regions._('ES');
const Regions _$LK = const Regions._('LK');
const Regions _$SE = const Regions._('SE');
const Regions _$CH = const Regions._('CH');
const Regions _$TW = const Regions._('TW');
const Regions _$TZ = const Regions._('TZ');
const Regions _$TH = const Regions._('TH');
const Regions _$TN = const Regions._('TN');
const Regions _$TR = const Regions._('TR');
const Regions _$UG = const Regions._('UG');
const Regions _$UA = const Regions._('UA');
const Regions _$AE = const Regions._('AE');
const Regions _$GB = const Regions._('GB');
const Regions _$US = const Regions._('US');
const Regions _$UY = const Regions._('UY');
const Regions _$VE = const Regions._('VE');
const Regions _$VN = const Regions._('VN');
const Regions _$YE = const Regions._('YE');
const Regions _$ZW = const Regions._('ZW');
Regions _$valueOf(String name) {
switch (name) {
case 'DZ':
return _$DZ;
case 'AR':
return _$AR;
case 'AU':
return _$AU;
case 'AT':
return _$AT;
case 'AZ':
return _$AZ;
case 'BH':
return _$BH;
case 'BD':
return _$BD;
case 'BY':
return _$BY;
case 'BE':
return _$BE;
case 'BO':
return _$BO;
case 'BA':
return _$BA;
case 'BR':
return _$BR;
case 'BG':
return _$BG;
case 'CA':
return _$CA;
case 'CL':
return _$CL;
case 'CO':
return _$CO;
case 'CR':
return _$CR;
case 'HR':
return _$HR;
case 'CY':
return _$CY;
case 'CZ':
return _$CZ;
case 'DK':
return _$DK;
case 'DO':
return _$DO;
case 'EC':
return _$EC;
case 'EG':
return _$EG;
case 'SV':
return _$SV;
case 'EE':
return _$EE;
case 'FI':
return _$FI;
case 'FR':
return _$FR;
case 'GE':
return _$GE;
case 'DE':
return _$DE;
case 'GH':
return _$GH;
case 'GR':
return _$GR;
case 'GT':
return _$GT;
case 'HN':
return _$HN;
case 'HK':
return _$HK;
case 'HU':
return _$HU;
case 'IS':
return _$IS;
case 'IN':
return _$IN;
case 'ID':
return _$ID;
case 'IQ':
return _$IQ;
case 'IE':
return _$IE;
case 'IL':
return _$IL;
case 'IT':
return _$IT;
case 'JM':
return _$JM;
case 'JP':
return _$JP;
case 'JO':
return _$JO;
case 'KZ':
return _$KZ;
case 'KE':
return _$KE;
case 'KW':
return _$KW;
case 'LV':
return _$LV;
case 'LB':
return _$LB;
case 'LY':
return _$LY;
case 'LI':
return _$LI;
case 'LT':
return _$LT;
case 'LU':
return _$LU;
case 'MY':
return _$MY;
case 'MT':
return _$MT;
case 'MX':
return _$MX;
case 'ME':
return _$ME;
case 'MA':
return _$MA;
case 'NP':
return _$NP;
case 'NL':
return _$NL;
case 'NZ':
return _$NZ;
case 'NI':
return _$NI;
case 'NG':
return _$NG;
case 'MK':
return _$MK;
case 'NO':
return _$NO;
case 'OM':
return _$OM;
case 'PK':
return _$PK;
case 'PA':
return _$PA;
case 'PG':
return _$PG;
case 'PY':
return _$PY;
case 'PE':
return _$PE;
case 'PH':
return _$PH;
case 'PL':
return _$PL;
case 'PT':
return _$PT;
case 'PR':
return _$PR;
case 'QA':
return _$QA;
case 'RO':
return _$RO;
case 'RU':
return _$RU;
case 'SA':
return _$SA;
case 'SN':
return _$SN;
case 'RS':
return _$RS;
case 'SG':
return _$SG;
case 'SK':
return _$SK;
case 'SI':
return _$SI;
case 'ZA':
return _$ZA;
case 'KR':
return _$KR;
case 'ES':
return _$ES;
case 'LK':
return _$LK;
case 'SE':
return _$SE;
case 'CH':
return _$CH;
case 'TW':
return _$TW;
case 'TZ':
return _$TZ;
case 'TH':
return _$TH;
case 'TN':
return _$TN;
case 'TR':
return _$TR;
case 'UG':
return _$UG;
case 'UA':
return _$UA;
case 'AE':
return _$AE;
case 'GB':
return _$GB;
case 'US':
return _$US;
case 'UY':
return _$UY;
case 'VE':
return _$VE;
case 'VN':
return _$VN;
case 'YE':
return _$YE;
case 'ZW':
return _$ZW;
default:
throw new ArgumentError(name);
}
}
final BuiltSet<Regions> _$values = new BuiltSet<Regions>(const <Regions>[
_$DZ,
_$AR,
_$AU,
_$AT,
_$AZ,
_$BH,
_$BD,
_$BY,
_$BE,
_$BO,
_$BA,
_$BR,
_$BG,
_$CA,
_$CL,
_$CO,
_$CR,
_$HR,
_$CY,
_$CZ,
_$DK,
_$DO,
_$EC,
_$EG,
_$SV,
_$EE,
_$FI,
_$FR,
_$GE,
_$DE,
_$GH,
_$GR,
_$GT,
_$HN,
_$HK,
_$HU,
_$IS,
_$IN,
_$ID,
_$IQ,
_$IE,
_$IL,
_$IT,
_$JM,
_$JP,
_$JO,
_$KZ,
_$KE,
_$KW,
_$LV,
_$LB,
_$LY,
_$LI,
_$LT,
_$LU,
_$MY,
_$MT,
_$MX,
_$ME,
_$MA,
_$NP,
_$NL,
_$NZ,
_$NI,
_$NG,
_$MK,
_$NO,
_$OM,
_$PK,
_$PA,
_$PG,
_$PY,
_$PE,
_$PH,
_$PL,
_$PT,
_$PR,
_$QA,
_$RO,
_$RU,
_$SA,
_$SN,
_$RS,
_$SG,
_$SK,
_$SI,
_$ZA,
_$KR,
_$ES,
_$LK,
_$SE,
_$CH,
_$TW,
_$TZ,
_$TH,
_$TN,
_$TR,
_$UG,
_$UA,
_$AE,
_$GB,
_$US,
_$UY,
_$VE,
_$VN,
_$YE,
_$ZW,
]);
class _$RegionsMeta {
const _$RegionsMeta();
Regions get DZ => _$DZ;
Regions get AR => _$AR;
Regions get AU => _$AU;
Regions get AT => _$AT;
Regions get AZ => _$AZ;
Regions get BH => _$BH;
Regions get BD => _$BD;
Regions get BY => _$BY;
Regions get BE => _$BE;
Regions get BO => _$BO;
Regions get BA => _$BA;
Regions get BR => _$BR;
Regions get BG => _$BG;
Regions get CA => _$CA;
Regions get CL => _$CL;
Regions get CO => _$CO;
Regions get CR => _$CR;
Regions get HR => _$HR;
Regions get CY => _$CY;
Regions get CZ => _$CZ;
Regions get DK => _$DK;
Regions get DO => _$DO;
Regions get EC => _$EC;
Regions get EG => _$EG;
Regions get SV => _$SV;
Regions get EE => _$EE;
Regions get FI => _$FI;
Regions get FR => _$FR;
Regions get GE => _$GE;
Regions get DE => _$DE;
Regions get GH => _$GH;
Regions get GR => _$GR;
Regions get GT => _$GT;
Regions get HN => _$HN;
Regions get HK => _$HK;
Regions get HU => _$HU;
Regions get IS => _$IS;
Regions get IN => _$IN;
Regions get ID => _$ID;
Regions get IQ => _$IQ;
Regions get IE => _$IE;
Regions get IL => _$IL;
Regions get IT => _$IT;
Regions get JM => _$JM;
Regions get JP => _$JP;
Regions get JO => _$JO;
Regions get KZ => _$KZ;
Regions get KE => _$KE;
Regions get KW => _$KW;
Regions get LV => _$LV;
Regions get LB => _$LB;
Regions get LY => _$LY;
Regions get LI => _$LI;
Regions get LT => _$LT;
Regions get LU => _$LU;
Regions get MY => _$MY;
Regions get MT => _$MT;
Regions get MX => _$MX;
Regions get ME => _$ME;
Regions get MA => _$MA;
Regions get NP => _$NP;
Regions get NL => _$NL;
Regions get NZ => _$NZ;
Regions get NI => _$NI;
Regions get NG => _$NG;
Regions get MK => _$MK;
Regions get NO => _$NO;
Regions get OM => _$OM;
Regions get PK => _$PK;
Regions get PA => _$PA;
Regions get PG => _$PG;
Regions get PY => _$PY;
Regions get PE => _$PE;
Regions get PH => _$PH;
Regions get PL => _$PL;
Regions get PT => _$PT;
Regions get PR => _$PR;
Regions get QA => _$QA;
Regions get RO => _$RO;
Regions get RU => _$RU;
Regions get SA => _$SA;
Regions get SN => _$SN;
Regions get RS => _$RS;
Regions get SG => _$SG;
Regions get SK => _$SK;
Regions get SI => _$SI;
Regions get ZA => _$ZA;
Regions get KR => _$KR;
Regions get ES => _$ES;
Regions get LK => _$LK;
Regions get SE => _$SE;
Regions get CH => _$CH;
Regions get TW => _$TW;
Regions get TZ => _$TZ;
Regions get TH => _$TH;
Regions get TN => _$TN;
Regions get TR => _$TR;
Regions get UG => _$UG;
Regions get UA => _$UA;
Regions get AE => _$AE;
Regions get GB => _$GB;
Regions get US => _$US;
Regions get UY => _$UY;
Regions get VE => _$VE;
Regions get VN => _$VN;
Regions get YE => _$YE;
Regions get ZW => _$ZW;
Regions valueOf(String name) => _$valueOf(name);
BuiltSet<Regions> get values => _$values;
}
abstract class _$RegionsMixin {
// ignore: non_constant_identifier_names
_$RegionsMeta get Regions => const _$RegionsMeta();
}
Serializer<Regions> _$regionsSerializer = new _$RegionsSerializer();
class _$RegionsSerializer implements PrimitiveSerializer<Regions> {
static const Map<String, Object> _toWire = const <String, Object>{
'DZ': 'DZ',
'AR': 'AR',
'AU': 'AU',
'AT': 'AT',
'AZ': 'AZ',
'BH': 'BH',
'BD': 'BD',
'BY': 'BY',
'BE': 'BE',
'BO': 'BO',
'BA': 'BA',
'BR': 'BR',
'BG': 'BG',
'CA': 'CA',
'CL': 'CL',
'CO': 'CO',
'CR': 'CR',
'HR': 'HR',
'CY': 'CY',
'CZ': 'CZ',
'DK': 'DK',
'DO': 'DO',
'EC': 'EC',
'EG': 'EG',
'SV': 'SV',
'EE': 'EE',
'FI': 'FI',
'FR': 'FR',
'GE': 'GE',
'DE': 'DE',
'GH': 'GH',
'GR': 'GR',
'GT': 'GT',
'HN': 'HN',
'HK': 'HK',
'HU': 'HU',
'IS': 'IS',
'IN': 'IN',
'ID': 'ID',
'IQ': 'IQ',
'IE': 'IE',
'IL': 'IL',
'IT': 'IT',
'JM': 'JM',
'JP': 'JP',
'JO': 'JO',
'KZ': 'KZ',
'KE': 'KE',
'KW': 'KW',
'LV': 'LV',
'LB': 'LB',
'LY': 'LY',
'LI': 'LI',
'LT': 'LT',
'LU': 'LU',
'MY': 'MY',
'MT': 'MT',
'MX': 'MX',
'ME': 'ME',
'MA': 'MA',
'NP': 'NP',
'NL': 'NL',
'NZ': 'NZ',
'NI': 'NI',
'NG': 'NG',
'MK': 'MK',
'NO': 'NO',
'OM': 'OM',
'PK': 'PK',
'PA': 'PA',
'PG': 'PG',
'PY': 'PY',
'PE': 'PE',
'PH': 'PH',
'PL': 'PL',
'PT': 'PT',
'PR': 'PR',
'QA': 'QA',
'RO': 'RO',
'RU': 'RU',
'SA': 'SA',
'SN': 'SN',
'RS': 'RS',
'SG': 'SG',
'SK': 'SK',
'SI': 'SI',
'ZA': 'ZA',
'KR': 'KR',
'ES': 'ES',
'LK': 'LK',
'SE': 'SE',
'CH': 'CH',
'TW': 'TW',
'TZ': 'TZ',
'TH': 'TH',
'TN': 'TN',
'TR': 'TR',
'UG': 'UG',
'UA': 'UA',
'AE': 'AE',
'GB': 'GB',
'US': 'US',
'UY': 'UY',
'VE': 'VE',
'VN': 'VN',
'YE': 'YE',
'ZW': 'ZW',
};
static const Map<Object, String> _fromWire = const <Object, String>{
'DZ': 'DZ',
'AR': 'AR',
'AU': 'AU',
'AT': 'AT',
'AZ': 'AZ',
'BH': 'BH',
'BD': 'BD',
'BY': 'BY',
'BE': 'BE',
'BO': 'BO',
'BA': 'BA',
'BR': 'BR',
'BG': 'BG',
'CA': 'CA',
'CL': 'CL',
'CO': 'CO',
'CR': 'CR',
'HR': 'HR',
'CY': 'CY',
'CZ': 'CZ',
'DK': 'DK',
'DO': 'DO',
'EC': 'EC',
'EG': 'EG',
'SV': 'SV',
'EE': 'EE',
'FI': 'FI',
'FR': 'FR',
'GE': 'GE',
'DE': 'DE',
'GH': 'GH',
'GR': 'GR',
'GT': 'GT',
'HN': 'HN',
'HK': 'HK',
'HU': 'HU',
'IS': 'IS',
'IN': 'IN',
'ID': 'ID',
'IQ': 'IQ',
'IE': 'IE',
'IL': 'IL',
'IT': 'IT',
'JM': 'JM',
'JP': 'JP',
'JO': 'JO',
'KZ': 'KZ',
'KE': 'KE',
'KW': 'KW',
'LV': 'LV',
'LB': 'LB',
'LY': 'LY',
'LI': 'LI',
'LT': 'LT',
'LU': 'LU',
'MY': 'MY',
'MT': 'MT',
'MX': 'MX',
'ME': 'ME',
'MA': 'MA',
'NP': 'NP',
'NL': 'NL',
'NZ': 'NZ',
'NI': 'NI',
'NG': 'NG',
'MK': 'MK',
'NO': 'NO',
'OM': 'OM',
'PK': 'PK',
'PA': 'PA',
'PG': 'PG',
'PY': 'PY',
'PE': 'PE',
'PH': 'PH',
'PL': 'PL',
'PT': 'PT',
'PR': 'PR',
'QA': 'QA',
'RO': 'RO',
'RU': 'RU',
'SA': 'SA',
'SN': 'SN',
'RS': 'RS',
'SG': 'SG',
'SK': 'SK',
'SI': 'SI',
'ZA': 'ZA',
'KR': 'KR',
'ES': 'ES',
'LK': 'LK',
'SE': 'SE',
'CH': 'CH',
'TW': 'TW',
'TZ': 'TZ',
'TH': 'TH',
'TN': 'TN',
'TR': 'TR',
'UG': 'UG',
'UA': 'UA',
'AE': 'AE',
'GB': 'GB',
'US': 'US',
'UY': 'UY',
'VE': 'VE',
'VN': 'VN',
'YE': 'YE',
'ZW': 'ZW',
};
@override
final Iterable<Type> types = const <Type>[Regions];
@override
final String wireName = 'Regions';
@override
Object serialize(Serializers serializers, Regions object,
{FullType specifiedType = FullType.unspecified}) =>
_toWire[object.name] ?? object.name;
@override
Regions deserialize(Serializers serializers, Object serialized,
{FullType specifiedType = FullType.unspecified}) =>
Regions.valueOf(
_fromWire[serialized] ?? (serialized is String ? serialized : ''));
}
// 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

329
lib/src/model/stream.g.dart Normal file
View File

@ -0,0 +1,329 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'stream.dart';
// **************************************************************************
// BuiltValueGenerator
// **************************************************************************
const StreamFormatEnum _$streamFormatEnum_mPEG4 =
const StreamFormatEnum._('mPEG4');
const StreamFormatEnum _$streamFormatEnum_v3GPP =
const StreamFormatEnum._('v3GPP');
const StreamFormatEnum _$streamFormatEnum_WEBM =
const StreamFormatEnum._('WEBM');
const StreamFormatEnum _$streamFormatEnum_m4A = const StreamFormatEnum._('m4A');
const StreamFormatEnum _$streamFormatEnum_WEBMA_OPUS =
const StreamFormatEnum._('WEBMA_OPUS');
StreamFormatEnum _$streamFormatEnumValueOf(String name) {
switch (name) {
case 'mPEG4':
return _$streamFormatEnum_mPEG4;
case 'v3GPP':
return _$streamFormatEnum_v3GPP;
case 'WEBM':
return _$streamFormatEnum_WEBM;
case 'm4A':
return _$streamFormatEnum_m4A;
case 'WEBMA_OPUS':
return _$streamFormatEnum_WEBMA_OPUS;
default:
throw new ArgumentError(name);
}
}
final BuiltSet<StreamFormatEnum> _$streamFormatEnumValues =
new BuiltSet<StreamFormatEnum>(const <StreamFormatEnum>[
_$streamFormatEnum_mPEG4,
_$streamFormatEnum_v3GPP,
_$streamFormatEnum_WEBM,
_$streamFormatEnum_m4A,
_$streamFormatEnum_WEBMA_OPUS,
]);
Serializer<StreamFormatEnum> _$streamFormatEnumSerializer =
new _$StreamFormatEnumSerializer();
class _$StreamFormatEnumSerializer
implements PrimitiveSerializer<StreamFormatEnum> {
static const Map<String, Object> _toWire = const <String, Object>{
'mPEG4': 'MPEG_4',
'v3GPP': 'v3GPP',
'WEBM': 'WEBM',
'm4A': 'M4A',
'WEBMA_OPUS': 'WEBMA_OPUS',
};
static const Map<Object, String> _fromWire = const <Object, String>{
'MPEG_4': 'mPEG4',
'v3GPP': 'v3GPP',
'WEBM': 'WEBM',
'M4A': 'm4A',
'WEBMA_OPUS': 'WEBMA_OPUS',
};
@override
final Iterable<Type> types = const <Type>[StreamFormatEnum];
@override
final String wireName = 'StreamFormatEnum';
@override
Object serialize(Serializers serializers, StreamFormatEnum object,
{FullType specifiedType = FullType.unspecified}) =>
_toWire[object.name] ?? object.name;
@override
StreamFormatEnum deserialize(Serializers serializers, Object serialized,
{FullType specifiedType = FullType.unspecified}) =>
StreamFormatEnum.valueOf(
_fromWire[serialized] ?? (serialized is String ? serialized : ''));
}
class _$Stream extends Stream {
@override
final String? url;
@override
final StreamFormatEnum? format;
@override
final String? quality;
@override
final String? mimeType;
@override
final String? codec;
@override
final bool? videoOnly;
@override
final int? bitrate;
@override
final int? initStart;
@override
final int? initEnd;
@override
final int? indexStart;
@override
final int? indexEnd;
@override
final int? width;
@override
final int? height;
@override
final int? fps;
factory _$Stream([void Function(StreamBuilder)? updates]) =>
(new StreamBuilder()..update(updates)).build();
_$Stream._(
{this.url,
this.format,
this.quality,
this.mimeType,
this.codec,
this.videoOnly,
this.bitrate,
this.initStart,
this.initEnd,
this.indexStart,
this.indexEnd,
this.width,
this.height,
this.fps})
: super._();
@override
Stream rebuild(void Function(StreamBuilder) updates) =>
(toBuilder()..update(updates)).build();
@override
StreamBuilder toBuilder() => new StreamBuilder()..replace(this);
@override
bool operator ==(Object other) {
if (identical(other, this)) return true;
return other is Stream &&
url == other.url &&
format == other.format &&
quality == other.quality &&
mimeType == other.mimeType &&
codec == other.codec &&
videoOnly == other.videoOnly &&
bitrate == other.bitrate &&
initStart == other.initStart &&
initEnd == other.initEnd &&
indexStart == other.indexStart &&
indexEnd == other.indexEnd &&
width == other.width &&
height == other.height &&
fps == other.fps;
}
@override
int get hashCode {
return $jf($jc(
$jc(
$jc(
$jc(
$jc(
$jc(
$jc(
$jc(
$jc(
$jc(
$jc(
$jc(
$jc($jc(0, url.hashCode),
format.hashCode),
quality.hashCode),
mimeType.hashCode),
codec.hashCode),
videoOnly.hashCode),
bitrate.hashCode),
initStart.hashCode),
initEnd.hashCode),
indexStart.hashCode),
indexEnd.hashCode),
width.hashCode),
height.hashCode),
fps.hashCode));
}
@override
String toString() {
return (newBuiltValueToStringHelper('Stream')
..add('url', url)
..add('format', format)
..add('quality', quality)
..add('mimeType', mimeType)
..add('codec', codec)
..add('videoOnly', videoOnly)
..add('bitrate', bitrate)
..add('initStart', initStart)
..add('initEnd', initEnd)
..add('indexStart', indexStart)
..add('indexEnd', indexEnd)
..add('width', width)
..add('height', height)
..add('fps', fps))
.toString();
}
}
class StreamBuilder implements Builder<Stream, StreamBuilder> {
_$Stream? _$v;
String? _url;
String? get url => _$this._url;
set url(String? url) => _$this._url = url;
StreamFormatEnum? _format;
StreamFormatEnum? get format => _$this._format;
set format(StreamFormatEnum? format) => _$this._format = format;
String? _quality;
String? get quality => _$this._quality;
set quality(String? quality) => _$this._quality = quality;
String? _mimeType;
String? get mimeType => _$this._mimeType;
set mimeType(String? mimeType) => _$this._mimeType = mimeType;
String? _codec;
String? get codec => _$this._codec;
set codec(String? codec) => _$this._codec = codec;
bool? _videoOnly;
bool? get videoOnly => _$this._videoOnly;
set videoOnly(bool? videoOnly) => _$this._videoOnly = videoOnly;
int? _bitrate;
int? get bitrate => _$this._bitrate;
set bitrate(int? bitrate) => _$this._bitrate = bitrate;
int? _initStart;
int? get initStart => _$this._initStart;
set initStart(int? initStart) => _$this._initStart = initStart;
int? _initEnd;
int? get initEnd => _$this._initEnd;
set initEnd(int? initEnd) => _$this._initEnd = initEnd;
int? _indexStart;
int? get indexStart => _$this._indexStart;
set indexStart(int? indexStart) => _$this._indexStart = indexStart;
int? _indexEnd;
int? get indexEnd => _$this._indexEnd;
set indexEnd(int? indexEnd) => _$this._indexEnd = indexEnd;
int? _width;
int? get width => _$this._width;
set width(int? width) => _$this._width = width;
int? _height;
int? get height => _$this._height;
set height(int? height) => _$this._height = height;
int? _fps;
int? get fps => _$this._fps;
set fps(int? fps) => _$this._fps = fps;
StreamBuilder() {
Stream._defaults(this);
}
StreamBuilder get _$this {
final $v = _$v;
if ($v != null) {
_url = $v.url;
_format = $v.format;
_quality = $v.quality;
_mimeType = $v.mimeType;
_codec = $v.codec;
_videoOnly = $v.videoOnly;
_bitrate = $v.bitrate;
_initStart = $v.initStart;
_initEnd = $v.initEnd;
_indexStart = $v.indexStart;
_indexEnd = $v.indexEnd;
_width = $v.width;
_height = $v.height;
_fps = $v.fps;
_$v = null;
}
return this;
}
@override
void replace(Stream other) {
ArgumentError.checkNotNull(other, 'other');
_$v = other as _$Stream;
}
@override
void update(void Function(StreamBuilder)? updates) {
if (updates != null) updates(this);
}
@override
_$Stream build() {
final _$result = _$v ??
new _$Stream._(
url: url,
format: format,
quality: quality,
mimeType: mimeType,
codec: codec,
videoOnly: videoOnly,
bitrate: bitrate,
initStart: initStart,
initEnd: initEnd,
indexStart: indexStart,
indexEnd: indexEnd,
width: width,
height: height,
fps: fps);
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

View File

@ -0,0 +1,215 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'stream_item.dart';
// **************************************************************************
// BuiltValueGenerator
// **************************************************************************
class _$StreamItem extends StreamItem {
@override
final int duration;
@override
final String thumbnail;
@override
final String title;
@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._(
{required this.duration,
required this.thumbnail,
required this.title,
this.uploadedDate,
this.uploaderAvatar,
this.uploaderName,
this.uploaderUrl,
this.uploaderVerified,
required 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 &&
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(0, duration.hashCode),
thumbnail.hashCode),
title.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('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;
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._defaults(this);
}
StreamItemBuilder get _$this {
final $v = _$v;
if ($v != null) {
_duration = $v.duration;
_thumbnail = $v.thumbnail;
_title = $v.title;
_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'),
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

View File

@ -0,0 +1,115 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'video_info.dart';
// **************************************************************************
// BuiltValueGenerator
// **************************************************************************
class _$VideoInfo extends VideoInfo {
@override
final BuiltList<Stream>? audioStreams;
@override
final BuiltList<StreamItem>? relatedStreams;
factory _$VideoInfo([void Function(VideoInfoBuilder)? updates]) =>
(new VideoInfoBuilder()..update(updates)).build();
_$VideoInfo._({this.audioStreams, this.relatedStreams}) : super._();
@override
VideoInfo rebuild(void Function(VideoInfoBuilder) updates) =>
(toBuilder()..update(updates)).build();
@override
VideoInfoBuilder toBuilder() => new VideoInfoBuilder()..replace(this);
@override
bool operator ==(Object other) {
if (identical(other, this)) return true;
return other is VideoInfo &&
audioStreams == other.audioStreams &&
relatedStreams == other.relatedStreams;
}
@override
int get hashCode {
return $jf($jc($jc(0, audioStreams.hashCode), relatedStreams.hashCode));
}
@override
String toString() {
return (newBuiltValueToStringHelper('VideoInfo')
..add('audioStreams', audioStreams)
..add('relatedStreams', relatedStreams))
.toString();
}
}
class VideoInfoBuilder implements Builder<VideoInfo, VideoInfoBuilder> {
_$VideoInfo? _$v;
ListBuilder<Stream>? _audioStreams;
ListBuilder<Stream> get audioStreams =>
_$this._audioStreams ??= new ListBuilder<Stream>();
set audioStreams(ListBuilder<Stream>? audioStreams) =>
_$this._audioStreams = audioStreams;
ListBuilder<StreamItem>? _relatedStreams;
ListBuilder<StreamItem> get relatedStreams =>
_$this._relatedStreams ??= new ListBuilder<StreamItem>();
set relatedStreams(ListBuilder<StreamItem>? relatedStreams) =>
_$this._relatedStreams = relatedStreams;
VideoInfoBuilder() {
VideoInfo._defaults(this);
}
VideoInfoBuilder get _$this {
final $v = _$v;
if ($v != null) {
_audioStreams = $v.audioStreams?.toBuilder();
_relatedStreams = $v.relatedStreams?.toBuilder();
_$v = null;
}
return this;
}
@override
void replace(VideoInfo other) {
ArgumentError.checkNotNull(other, 'other');
_$v = other as _$VideoInfo;
}
@override
void update(void Function(VideoInfoBuilder)? updates) {
if (updates != null) updates(this);
}
@override
_$VideoInfo build() {
_$VideoInfo _$result;
try {
_$result = _$v ??
new _$VideoInfo._(
audioStreams: _audioStreams?.build(),
relatedStreams: _relatedStreams?.build());
} catch (_) {
late String _$failedField;
try {
_$failedField = 'audioStreams';
_audioStreams?.build();
_$failedField = 'relatedStreams';
_relatedStreams?.build();
} catch (e) {
throw new BuiltValueNestedFieldError(
'VideoInfo', _$failedField, e.toString());
}
rethrow;
}
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

View File

@ -0,0 +1,28 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'serializers.dart';
// **************************************************************************
// BuiltValueGenerator
// **************************************************************************
Serializers _$serializers = (new Serializers().toBuilder()
..add(ChannelInfo.serializer)
..add(ExceptionError.serializer)
..add(Regions.serializer)
..add(Stream.serializer)
..add(StreamFormatEnum.serializer)
..add(StreamItem.serializer)
..add(VideoInfo.serializer)
..addBuilderFactory(
const FullType(BuiltList, const [const FullType(Stream)]),
() => new ListBuilder<Stream>())
..addBuilderFactory(
const FullType(BuiltList, const [const FullType(StreamItem)]),
() => new ListBuilder<StreamItem>())
..addBuilderFactory(
const FullType(BuiltList, const [const FullType(StreamItem)]),
() => new ListBuilder<StreamItem>()))
.build();
// 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