mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-08-06 10:40:09 +08:00
@@ -57,37 +57,37 @@ class Arc {
|
||||
});
|
||||
|
||||
factory Arc.fromJson(Map<String, dynamic> json) => Arc(
|
||||
aid: json['aid'] as int?,
|
||||
videos: json['videos'] as int?,
|
||||
typeId: json['type_id'] as int?,
|
||||
typeName: json['type_name'] as String?,
|
||||
copyright: json['copyright'] as int?,
|
||||
pic: json['pic'] as String?,
|
||||
title: json['title'] as String?,
|
||||
pubdate: json['pubdate'] as int?,
|
||||
ctime: json['ctime'] as int?,
|
||||
desc: json['desc'] as String?,
|
||||
state: json['state'] as int?,
|
||||
duration: json['duration'] as int?,
|
||||
rights: json['rights'] == null
|
||||
? null
|
||||
: Rights.fromJson(json['rights'] as Map<String, dynamic>),
|
||||
author: json['author'] == null
|
||||
? null
|
||||
: Owner.fromJson(json['author'] as Map<String, dynamic>),
|
||||
stat: json['stat'] == null
|
||||
? null
|
||||
: Stat.fromJson(json['stat'] as Map<String, dynamic>),
|
||||
dynam1c: json['dynamic'] as String?,
|
||||
dimension: json['dimension'] == null
|
||||
? null
|
||||
: Dimension.fromJson(json['dimension'] as Map<String, dynamic>),
|
||||
isChargeableSeason: json['is_chargeable_season'] as bool?,
|
||||
isBlooper: json['is_blooper'] as bool?,
|
||||
enableVt: json['enable_vt'] as int?,
|
||||
vtDisplay: json['vt_display'] as String?,
|
||||
typeIdV2: json['type_id_v2'] as int?,
|
||||
typeNameV2: json['type_name_v2'] as String?,
|
||||
isLessonVideo: json['is_lesson_video'] as int?,
|
||||
);
|
||||
aid: json['aid'] as int?,
|
||||
videos: json['videos'] as int?,
|
||||
typeId: json['type_id'] as int?,
|
||||
typeName: json['type_name'] as String?,
|
||||
copyright: json['copyright'] as int?,
|
||||
pic: json['pic'] as String?,
|
||||
title: json['title'] as String?,
|
||||
pubdate: json['pubdate'] as int?,
|
||||
ctime: json['ctime'] as int?,
|
||||
desc: json['desc'] as String?,
|
||||
state: json['state'] as int?,
|
||||
duration: json['duration'] as int?,
|
||||
rights: json['rights'] == null
|
||||
? null
|
||||
: Rights.fromJson(json['rights'] as Map<String, dynamic>),
|
||||
author: json['author'] == null
|
||||
? null
|
||||
: Owner.fromJson(json['author'] as Map<String, dynamic>),
|
||||
stat: json['stat'] == null
|
||||
? null
|
||||
: Stat.fromJson(json['stat'] as Map<String, dynamic>),
|
||||
dynam1c: json['dynamic'] as String?,
|
||||
dimension: json['dimension'] == null
|
||||
? null
|
||||
: Dimension.fromJson(json['dimension'] as Map<String, dynamic>),
|
||||
isChargeableSeason: json['is_chargeable_season'] as bool?,
|
||||
isBlooper: json['is_blooper'] as bool?,
|
||||
enableVt: json['enable_vt'] as int?,
|
||||
vtDisplay: json['vt_display'] as String?,
|
||||
typeIdV2: json['type_id_v2'] as int?,
|
||||
typeNameV2: json['type_name_v2'] as String?,
|
||||
isLessonVideo: json['is_lesson_video'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@ class ArgueInfo {
|
||||
ArgueInfo({this.argueMsg, this.argueType, this.argueLink});
|
||||
|
||||
factory ArgueInfo.fromJson(Map<String, dynamic> json) => ArgueInfo(
|
||||
argueMsg: json['argue_msg'] as String?,
|
||||
argueType: json['argue_type'] as int?,
|
||||
argueLink: json['argue_link'] as String?,
|
||||
);
|
||||
argueMsg: json['argue_msg'] as String?,
|
||||
argueType: json['argue_type'] as int?,
|
||||
argueLink: json['argue_link'] as String?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -181,7 +181,7 @@ class VideoDetailData {
|
||||
epId: json['redirect_url'] == null
|
||||
? null
|
||||
: PiliScheme.uriDigitRegExp
|
||||
.firstMatch(json['redirect_url'])
|
||||
?.group(1),
|
||||
.firstMatch(json['redirect_url'])
|
||||
?.group(1),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@ class DescV2 {
|
||||
DescV2({this.rawText, this.type, this.bizId});
|
||||
|
||||
factory DescV2.fromJson(Map<String, dynamic> json) => DescV2(
|
||||
rawText: json['raw_text'] as String?,
|
||||
type: json['type'] as int?,
|
||||
bizId: json['biz_id'] as int?,
|
||||
);
|
||||
rawText: json['raw_text'] as String?,
|
||||
type: json['type'] as int?,
|
||||
bizId: json['biz_id'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@ class Dimension {
|
||||
Dimension({this.width, this.height, this.rotate});
|
||||
|
||||
factory Dimension.fromJson(Map<String, dynamic> json) => Dimension(
|
||||
width: json['width'] as int?,
|
||||
height: json['height'] as int?,
|
||||
rotate: json['rotate'] as int?,
|
||||
);
|
||||
width: json['width'] as int?,
|
||||
height: json['height'] as int?,
|
||||
rotate: json['rotate'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -31,23 +31,23 @@ class EpisodeItem {
|
||||
});
|
||||
|
||||
factory EpisodeItem.fromJson(Map<String, dynamic> json) => EpisodeItem(
|
||||
seasonId: json['season_id'] as int?,
|
||||
sectionId: json['section_id'] as int?,
|
||||
id: json['id'] as int?,
|
||||
aid: json['aid'] as int?,
|
||||
cid: json['cid'] as int?,
|
||||
title: json['title'] as String?,
|
||||
attribute: json['attribute'] as int?,
|
||||
arc: json['arc'] == null
|
||||
? null
|
||||
: Arc.fromJson(json['arc'] as Map<String, dynamic>),
|
||||
page: json['page'] == null
|
||||
? null
|
||||
: Part.fromJson(json['page'] as Map<String, dynamic>),
|
||||
bvid: json['bvid'] as String?,
|
||||
pages: (json['pages'] as List<dynamic>?)
|
||||
?.map((e) => Part.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
badge: json['badge'],
|
||||
);
|
||||
seasonId: json['season_id'] as int?,
|
||||
sectionId: json['section_id'] as int?,
|
||||
id: json['id'] as int?,
|
||||
aid: json['aid'] as int?,
|
||||
cid: json['cid'] as int?,
|
||||
title: json['title'] as String?,
|
||||
attribute: json['attribute'] as int?,
|
||||
arc: json['arc'] == null
|
||||
? null
|
||||
: Arc.fromJson(json['arc'] as Map<String, dynamic>),
|
||||
page: json['page'] == null
|
||||
? null
|
||||
: Part.fromJson(json['page'] as Map<String, dynamic>),
|
||||
bvid: json['bvid'] as String?,
|
||||
pages: (json['pages'] as List<dynamic>?)
|
||||
?.map((e) => Part.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
badge: json['badge'],
|
||||
);
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@ class Owner {
|
||||
Owner({this.mid, this.name, this.face});
|
||||
|
||||
factory Owner.fromJson(Map<String, dynamic> json) => Owner(
|
||||
mid: json['mid'] as int?,
|
||||
name: json['name'] as String?,
|
||||
face: json['face'] as String?,
|
||||
);
|
||||
mid: json['mid'] as int?,
|
||||
name: json['name'] as String?,
|
||||
face: json['face'] as String?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -28,18 +28,18 @@ class Part {
|
||||
});
|
||||
|
||||
factory Part.fromJson(Map<String, dynamic> json) => Part(
|
||||
cid: json['cid'] as int?,
|
||||
page: json['page'] as int?,
|
||||
from: json['from'] as String?,
|
||||
pagePart: json['part'] as String?,
|
||||
duration: json['duration'] as int?,
|
||||
vid: json['vid'] as String?,
|
||||
weblink: json['weblink'] as String?,
|
||||
dimension: json['dimension'] == null
|
||||
? null
|
||||
: Dimension.fromJson(json['dimension'] as Map<String, dynamic>),
|
||||
ctime: json['ctime'] as int?,
|
||||
firstFrame: json['first_frame'] as String?,
|
||||
badge: json["badge"],
|
||||
);
|
||||
cid: json['cid'] as int?,
|
||||
page: json['page'] as int?,
|
||||
from: json['from'] as String?,
|
||||
pagePart: json['part'] as String?,
|
||||
duration: json['duration'] as int?,
|
||||
vid: json['vid'] as String?,
|
||||
weblink: json['weblink'] as String?,
|
||||
dimension: json['dimension'] == null
|
||||
? null
|
||||
: Dimension.fromJson(json['dimension'] as Map<String, dynamic>),
|
||||
ctime: json['ctime'] as int?,
|
||||
firstFrame: json['first_frame'] as String?,
|
||||
badge: json["badge"],
|
||||
);
|
||||
}
|
||||
|
||||
@@ -40,23 +40,23 @@ class Rights {
|
||||
});
|
||||
|
||||
factory Rights.fromJson(Map<String, dynamic> json) => Rights(
|
||||
bp: json['bp'] as int?,
|
||||
elec: json['elec'] as int?,
|
||||
download: json['download'] as int?,
|
||||
movie: json['movie'] as int?,
|
||||
pay: json['pay'] as int?,
|
||||
hd5: json['hd5'] as int?,
|
||||
noReprint: json['no_reprint'] as int?,
|
||||
autoplay: json['autoplay'] as int?,
|
||||
ugcPay: json['ugc_pay'] as int?,
|
||||
isCooperation: json['is_cooperation'] as int?,
|
||||
ugcPayPreview: json['ugc_pay_preview'] as int?,
|
||||
noBackground: json['no_background'] as int?,
|
||||
cleanMode: json['clean_mode'] as int?,
|
||||
isSteinGate: json['is_stein_gate'] as int?,
|
||||
is360: json['is_360'] as int?,
|
||||
noShare: json['no_share'] as int?,
|
||||
arcPay: json['arc_pay'] as int?,
|
||||
freeWatch: json['free_watch'] as int?,
|
||||
);
|
||||
bp: json['bp'] as int?,
|
||||
elec: json['elec'] as int?,
|
||||
download: json['download'] as int?,
|
||||
movie: json['movie'] as int?,
|
||||
pay: json['pay'] as int?,
|
||||
hd5: json['hd5'] as int?,
|
||||
noReprint: json['no_reprint'] as int?,
|
||||
autoplay: json['autoplay'] as int?,
|
||||
ugcPay: json['ugc_pay'] as int?,
|
||||
isCooperation: json['is_cooperation'] as int?,
|
||||
ugcPayPreview: json['ugc_pay_preview'] as int?,
|
||||
noBackground: json['no_background'] as int?,
|
||||
cleanMode: json['clean_mode'] as int?,
|
||||
isSteinGate: json['is_stein_gate'] as int?,
|
||||
is360: json['is_360'] as int?,
|
||||
noShare: json['no_share'] as int?,
|
||||
arcPay: json['arc_pay'] as int?,
|
||||
freeWatch: json['free_watch'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -11,12 +11,12 @@ class SectionItem {
|
||||
SectionItem({this.seasonId, this.id, this.title, this.type, this.episodes});
|
||||
|
||||
factory SectionItem.fromJson(Map<String, dynamic> json) => SectionItem(
|
||||
seasonId: json['season_id'] as int?,
|
||||
id: json['id'] as int?,
|
||||
title: json['title'] as String?,
|
||||
type: json['type'] as int?,
|
||||
episodes: (json['episodes'] as List<dynamic>?)
|
||||
?.map((e) => EpisodeItem.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
);
|
||||
seasonId: json['season_id'] as int?,
|
||||
id: json['id'] as int?,
|
||||
title: json['title'] as String?,
|
||||
type: json['type'] as int?,
|
||||
episodes: (json['episodes'] as List<dynamic>?)
|
||||
?.map((e) => EpisodeItem.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -30,18 +30,18 @@ class Stat {
|
||||
});
|
||||
|
||||
factory Stat.fromJson(Map<String, dynamic> json) => Stat(
|
||||
aid: json['aid'] as int?,
|
||||
view: json['view'] as int?,
|
||||
danmaku: json['danmaku'] as int?,
|
||||
reply: json['reply'] as int?,
|
||||
favorite: json['favorite'] as int?,
|
||||
coin: json['coin'] as num?,
|
||||
share: json['share'] as int?,
|
||||
nowRank: json['now_rank'] as int?,
|
||||
hisRank: json['his_rank'] as int?,
|
||||
like: json['like'] as int?,
|
||||
dislike: json['dislike'] as int?,
|
||||
evaluation: json['evaluation'] as String?,
|
||||
vt: json['vt'] as int?,
|
||||
);
|
||||
aid: json['aid'] as int?,
|
||||
view: json['view'] as int?,
|
||||
danmaku: json['danmaku'] as int?,
|
||||
reply: json['reply'] as int?,
|
||||
favorite: json['favorite'] as int?,
|
||||
coin: json['coin'] as num?,
|
||||
share: json['share'] as int?,
|
||||
nowRank: json['now_rank'] as int?,
|
||||
hisRank: json['his_rank'] as int?,
|
||||
like: json['like'] as int?,
|
||||
dislike: json['dislike'] as int?,
|
||||
evaluation: json['evaluation'] as String?,
|
||||
vt: json['vt'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ class Subtitle {
|
||||
Subtitle({this.allowSubmit, this.list});
|
||||
|
||||
factory Subtitle.fromJson(Map<String, dynamic> json) => Subtitle(
|
||||
allowSubmit: json['allow_submit'] as bool?,
|
||||
list: json['list'] as List<dynamic>?,
|
||||
);
|
||||
allowSubmit: json['allow_submit'] as bool?,
|
||||
list: json['list'] as List<dynamic>?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -33,22 +33,22 @@ class UgcSeason {
|
||||
});
|
||||
|
||||
factory UgcSeason.fromJson(Map<String, dynamic> json) => UgcSeason(
|
||||
id: json['id'] as int?,
|
||||
title: json['title'] as String?,
|
||||
cover: json['cover'] as String?,
|
||||
mid: json['mid'] as int?,
|
||||
intro: json['intro'] as String?,
|
||||
signState: json['sign_state'] as int?,
|
||||
attribute: json['attribute'] as int?,
|
||||
sections: (json['sections'] as List<dynamic>?)
|
||||
?.map((e) => SectionItem.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
stat: json['stat'] == null
|
||||
? null
|
||||
: Stat.fromJson(json['stat'] as Map<String, dynamic>),
|
||||
epCount: json['ep_count'] as int?,
|
||||
seasonType: json['season_type'] as int?,
|
||||
isPaySeason: json['is_pay_season'] as bool?,
|
||||
enableVt: json['enable_vt'] as int?,
|
||||
);
|
||||
id: json['id'] as int?,
|
||||
title: json['title'] as String?,
|
||||
cover: json['cover'] as String?,
|
||||
mid: json['mid'] as int?,
|
||||
intro: json['intro'] as String?,
|
||||
signState: json['sign_state'] as int?,
|
||||
attribute: json['attribute'] as int?,
|
||||
sections: (json['sections'] as List<dynamic>?)
|
||||
?.map((e) => SectionItem.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
stat: json['stat'] == null
|
||||
? null
|
||||
: Stat.fromJson(json['stat'] as Map<String, dynamic>),
|
||||
epCount: json['ep_count'] as int?,
|
||||
seasonType: json['season_type'] as int?,
|
||||
isPaySeason: json['is_pay_season'] as bool?,
|
||||
enableVt: json['enable_vt'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -4,6 +4,6 @@ class UserGarb {
|
||||
UserGarb({this.urlImageAniCut});
|
||||
|
||||
factory UserGarb.fromJson(Map<String, dynamic> json) => UserGarb(
|
||||
urlImageAniCut: json['url_image_ani_cut'] as String?,
|
||||
);
|
||||
urlImageAniCut: json['url_image_ani_cut'] as String?,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user