mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-22 03:31:09 +08:00
11
lib/models_new/fav/fav_pgc/area.dart
Normal file
11
lib/models_new/fav/fav_pgc/area.dart
Normal file
@@ -0,0 +1,11 @@
|
||||
class Area {
|
||||
int? id;
|
||||
String? name;
|
||||
|
||||
Area({this.id, this.name});
|
||||
|
||||
factory Area.fromJson(Map<String, dynamic> json) => Area(
|
||||
id: json['id'] as int?,
|
||||
name: json['name'] as String?,
|
||||
);
|
||||
}
|
||||
27
lib/models_new/fav/fav_pgc/badge_info.dart
Normal file
27
lib/models_new/fav/fav_pgc/badge_info.dart
Normal file
@@ -0,0 +1,27 @@
|
||||
import 'package:PiliPlus/models_new/fav/fav_pgc/multi_img.dart';
|
||||
|
||||
class BadgeInfo {
|
||||
String? text;
|
||||
String? bgColor;
|
||||
String? bgColorNight;
|
||||
String? img;
|
||||
MultiImg? multiImg;
|
||||
|
||||
BadgeInfo({
|
||||
this.text,
|
||||
this.bgColor,
|
||||
this.bgColorNight,
|
||||
this.img,
|
||||
this.multiImg,
|
||||
});
|
||||
|
||||
factory BadgeInfo.fromJson(Map<String, dynamic> json) => BadgeInfo(
|
||||
text: json['text'] as String?,
|
||||
bgColor: json['bg_color'] as String?,
|
||||
bgColorNight: json['bg_color_night'] as String?,
|
||||
img: json['img'] as String?,
|
||||
multiImg: json['multi_img'] == null
|
||||
? null
|
||||
: MultiImg.fromJson(json['multi_img'] as Map<String, dynamic>),
|
||||
);
|
||||
}
|
||||
19
lib/models_new/fav/fav_pgc/badge_infos.dart
Normal file
19
lib/models_new/fav/fav_pgc/badge_infos.dart
Normal file
@@ -0,0 +1,19 @@
|
||||
import 'package:PiliPlus/models_new/fav/fav_pgc/content_attr.dart';
|
||||
import 'package:PiliPlus/models_new/fav/fav_pgc/vip_or_pay.dart';
|
||||
|
||||
class BadgeInfos {
|
||||
ContentAttr? contentAttr;
|
||||
VipOrPay? vipOrPay;
|
||||
|
||||
BadgeInfos({this.contentAttr, this.vipOrPay});
|
||||
|
||||
factory BadgeInfos.fromJson(Map<String, dynamic> json) => BadgeInfos(
|
||||
contentAttr: json['content_attr'] == null
|
||||
? null
|
||||
: ContentAttr.fromJson(
|
||||
json['content_attr'] as Map<String, dynamic>),
|
||||
vipOrPay: json['vip_or_pay'] == null
|
||||
? null
|
||||
: VipOrPay.fromJson(json['vip_or_pay'] as Map<String, dynamic>),
|
||||
);
|
||||
}
|
||||
9
lib/models_new/fav/fav_pgc/cc_on_lock.dart
Normal file
9
lib/models_new/fav/fav_pgc/cc_on_lock.dart
Normal file
@@ -0,0 +1,9 @@
|
||||
class CcOnLock {
|
||||
String? typeUrl;
|
||||
|
||||
CcOnLock({this.typeUrl});
|
||||
|
||||
factory CcOnLock.fromJson(Map<String, dynamic> json) => CcOnLock(
|
||||
typeUrl: json['type_url'] as String?,
|
||||
);
|
||||
}
|
||||
36
lib/models_new/fav/fav_pgc/config_attrs.dart
Normal file
36
lib/models_new/fav/fav_pgc/config_attrs.dart
Normal file
@@ -0,0 +1,36 @@
|
||||
import 'package:PiliPlus/models_new/fav/fav_pgc/cc_on_lock.dart';
|
||||
import 'package:PiliPlus/models_new/fav/fav_pgc/highlight_ineffective_hd.dart';
|
||||
import 'package:PiliPlus/models_new/fav/fav_pgc/highlight_ineffective_ott.dart';
|
||||
import 'package:PiliPlus/models_new/fav/fav_pgc/highlight_ineffective_pink.dart';
|
||||
|
||||
class ConfigAttrs {
|
||||
CcOnLock? ccOnLock;
|
||||
HighlightIneffectiveHd? highlightIneffectiveHd;
|
||||
HighlightIneffectiveOtt? highlightIneffectiveOtt;
|
||||
HighlightIneffectivePink? highlightIneffectivePink;
|
||||
|
||||
ConfigAttrs({
|
||||
this.ccOnLock,
|
||||
this.highlightIneffectiveHd,
|
||||
this.highlightIneffectiveOtt,
|
||||
this.highlightIneffectivePink,
|
||||
});
|
||||
|
||||
factory ConfigAttrs.fromJson(Map<String, dynamic> json) => ConfigAttrs(
|
||||
ccOnLock: json['cc_on_lock'] == null
|
||||
? null
|
||||
: CcOnLock.fromJson(json['cc_on_lock'] as Map<String, dynamic>),
|
||||
highlightIneffectiveHd: json['highlight_ineffective_hd'] == null
|
||||
? null
|
||||
: HighlightIneffectiveHd.fromJson(
|
||||
json['highlight_ineffective_hd'] as Map<String, dynamic>),
|
||||
highlightIneffectiveOtt: json['highlight_ineffective_ott'] == null
|
||||
? null
|
||||
: HighlightIneffectiveOtt.fromJson(
|
||||
json['highlight_ineffective_ott'] as Map<String, dynamic>),
|
||||
highlightIneffectivePink: json['highlight_ineffective_pink'] == null
|
||||
? null
|
||||
: HighlightIneffectivePink.fromJson(
|
||||
json['highlight_ineffective_pink'] as Map<String, dynamic>),
|
||||
);
|
||||
}
|
||||
27
lib/models_new/fav/fav_pgc/content_attr.dart
Normal file
27
lib/models_new/fav/fav_pgc/content_attr.dart
Normal file
@@ -0,0 +1,27 @@
|
||||
import 'package:PiliPlus/models_new/fav/fav_pgc/multi_img.dart';
|
||||
|
||||
class ContentAttr {
|
||||
String? text;
|
||||
String? bgColor;
|
||||
String? bgColorNight;
|
||||
String? img;
|
||||
MultiImg? multiImg;
|
||||
|
||||
ContentAttr({
|
||||
this.text,
|
||||
this.bgColor,
|
||||
this.bgColorNight,
|
||||
this.img,
|
||||
this.multiImg,
|
||||
});
|
||||
|
||||
factory ContentAttr.fromJson(Map<String, dynamic> json) => ContentAttr(
|
||||
text: json['text'] as String?,
|
||||
bgColor: json['bg_color'] as String?,
|
||||
bgColorNight: json['bg_color_night'] as String?,
|
||||
img: json['img'] as String?,
|
||||
multiImg: json['multi_img'] == null
|
||||
? null
|
||||
: MultiImg.fromJson(json['multi_img'] as Map<String, dynamic>),
|
||||
);
|
||||
}
|
||||
19
lib/models_new/fav/fav_pgc/data.dart
Normal file
19
lib/models_new/fav/fav_pgc/data.dart
Normal file
@@ -0,0 +1,19 @@
|
||||
import 'package:PiliPlus/models_new/fav/fav_pgc/list.dart';
|
||||
|
||||
class FavPgcData {
|
||||
List<FavPgcItemModel>? list;
|
||||
int? pn;
|
||||
int? ps;
|
||||
int? total;
|
||||
|
||||
FavPgcData({this.list, this.pn, this.ps, this.total});
|
||||
|
||||
factory FavPgcData.fromJson(Map<String, dynamic> json) => FavPgcData(
|
||||
list: (json['list'] as List<dynamic>?)
|
||||
?.map((e) => FavPgcItemModel.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
pn: json['pn'] as int?,
|
||||
ps: json['ps'] as int?,
|
||||
total: json['total'] as int?,
|
||||
);
|
||||
}
|
||||
26
lib/models_new/fav/fav_pgc/first_ep_info.dart
Normal file
26
lib/models_new/fav/fav_pgc/first_ep_info.dart
Normal file
@@ -0,0 +1,26 @@
|
||||
class FirstEpInfo {
|
||||
int? id;
|
||||
String? cover;
|
||||
String? title;
|
||||
String? longTitle;
|
||||
String? pubTime;
|
||||
int? duration;
|
||||
|
||||
FirstEpInfo({
|
||||
this.id,
|
||||
this.cover,
|
||||
this.title,
|
||||
this.longTitle,
|
||||
this.pubTime,
|
||||
this.duration,
|
||||
});
|
||||
|
||||
factory FirstEpInfo.fromJson(Map<String, dynamic> json) => FirstEpInfo(
|
||||
id: json['id'] as int?,
|
||||
cover: json['cover'] as String?,
|
||||
title: json['title'] as String?,
|
||||
longTitle: json['long_title'] as String?,
|
||||
pubTime: json['pub_time'] as String?,
|
||||
duration: json['duration'] as int?,
|
||||
);
|
||||
}
|
||||
11
lib/models_new/fav/fav_pgc/highlight_ineffective_hd.dart
Normal file
11
lib/models_new/fav/fav_pgc/highlight_ineffective_hd.dart
Normal file
@@ -0,0 +1,11 @@
|
||||
class HighlightIneffectiveHd {
|
||||
String? typeUrl;
|
||||
|
||||
HighlightIneffectiveHd({this.typeUrl});
|
||||
|
||||
factory HighlightIneffectiveHd.fromJson(Map<String, dynamic> json) {
|
||||
return HighlightIneffectiveHd(
|
||||
typeUrl: json['type_url'] as String?,
|
||||
);
|
||||
}
|
||||
}
|
||||
11
lib/models_new/fav/fav_pgc/highlight_ineffective_ott.dart
Normal file
11
lib/models_new/fav/fav_pgc/highlight_ineffective_ott.dart
Normal file
@@ -0,0 +1,11 @@
|
||||
class HighlightIneffectiveOtt {
|
||||
String? typeUrl;
|
||||
|
||||
HighlightIneffectiveOtt({this.typeUrl});
|
||||
|
||||
factory HighlightIneffectiveOtt.fromJson(Map<String, dynamic> json) {
|
||||
return HighlightIneffectiveOtt(
|
||||
typeUrl: json['type_url'] as String?,
|
||||
);
|
||||
}
|
||||
}
|
||||
11
lib/models_new/fav/fav_pgc/highlight_ineffective_pink.dart
Normal file
11
lib/models_new/fav/fav_pgc/highlight_ineffective_pink.dart
Normal file
@@ -0,0 +1,11 @@
|
||||
class HighlightIneffectivePink {
|
||||
String? typeUrl;
|
||||
|
||||
HighlightIneffectivePink({this.typeUrl});
|
||||
|
||||
factory HighlightIneffectivePink.fromJson(Map<String, dynamic> json) {
|
||||
return HighlightIneffectivePink(
|
||||
typeUrl: json['type_url'] as String?,
|
||||
);
|
||||
}
|
||||
}
|
||||
208
lib/models_new/fav/fav_pgc/list.dart
Normal file
208
lib/models_new/fav/fav_pgc/list.dart
Normal file
@@ -0,0 +1,208 @@
|
||||
import 'package:PiliPlus/models_new/fav/fav_pgc/area.dart';
|
||||
import 'package:PiliPlus/models_new/fav/fav_pgc/badge_info.dart';
|
||||
import 'package:PiliPlus/models_new/fav/fav_pgc/badge_infos.dart';
|
||||
import 'package:PiliPlus/models_new/fav/fav_pgc/config_attrs.dart';
|
||||
import 'package:PiliPlus/models_new/fav/fav_pgc/first_ep_info.dart';
|
||||
import 'package:PiliPlus/models_new/fav/fav_pgc/new_ep.dart';
|
||||
import 'package:PiliPlus/models_new/fav/fav_pgc/producer.dart';
|
||||
import 'package:PiliPlus/models_new/fav/fav_pgc/publish.dart';
|
||||
import 'package:PiliPlus/models_new/fav/fav_pgc/rating.dart';
|
||||
import 'package:PiliPlus/models_new/fav/fav_pgc/rights.dart';
|
||||
import 'package:PiliPlus/models_new/fav/fav_pgc/section.dart';
|
||||
import 'package:PiliPlus/models_new/fav/fav_pgc/series.dart';
|
||||
import 'package:PiliPlus/models_new/fav/fav_pgc/stat.dart';
|
||||
import 'package:PiliPlus/pages/common/multi_select_controller.dart';
|
||||
|
||||
class FavPgcItemModel with MultiSelectData {
|
||||
int? seasonId;
|
||||
int? mediaId;
|
||||
int? seasonType;
|
||||
String? seasonTypeName;
|
||||
String? title;
|
||||
String? cover;
|
||||
int? totalCount;
|
||||
int? isFinish;
|
||||
int? isStarted;
|
||||
int? isPlay;
|
||||
String? badge;
|
||||
int? badgeType;
|
||||
Rights? rights;
|
||||
Stat? stat;
|
||||
NewEp? newEp;
|
||||
Rating? rating;
|
||||
String? squareCover;
|
||||
int? seasonStatus;
|
||||
String? seasonTitle;
|
||||
String? badgeEp;
|
||||
int? mediaAttr;
|
||||
int? seasonAttr;
|
||||
String? evaluate;
|
||||
List<Area>? areas;
|
||||
String? subtitle;
|
||||
int? firstEp;
|
||||
int? canWatch;
|
||||
Series? series;
|
||||
Publish? publish;
|
||||
int? mode;
|
||||
List<Section>? section;
|
||||
String? url;
|
||||
BadgeInfo? badgeInfo;
|
||||
String? renewalTime;
|
||||
FirstEpInfo? firstEpInfo;
|
||||
int? formalEpCount;
|
||||
String? shortUrl;
|
||||
BadgeInfos? badgeInfos;
|
||||
String? seasonVersion;
|
||||
String? horizontalCover169;
|
||||
String? horizontalCover1610;
|
||||
String? subtitle14;
|
||||
int? viewableCrowdType;
|
||||
List<Producer>? producers;
|
||||
String? summary;
|
||||
List<String>? styles;
|
||||
ConfigAttrs? configAttrs;
|
||||
int? followStatus;
|
||||
int? isNew;
|
||||
String? progress;
|
||||
bool? bothFollow;
|
||||
String? subtitle25;
|
||||
|
||||
FavPgcItemModel({
|
||||
this.seasonId,
|
||||
this.mediaId,
|
||||
this.seasonType,
|
||||
this.seasonTypeName,
|
||||
this.title,
|
||||
this.cover,
|
||||
this.totalCount,
|
||||
this.isFinish,
|
||||
this.isStarted,
|
||||
this.isPlay,
|
||||
this.badge,
|
||||
this.badgeType,
|
||||
this.rights,
|
||||
this.stat,
|
||||
this.newEp,
|
||||
this.rating,
|
||||
this.squareCover,
|
||||
this.seasonStatus,
|
||||
this.seasonTitle,
|
||||
this.badgeEp,
|
||||
this.mediaAttr,
|
||||
this.seasonAttr,
|
||||
this.evaluate,
|
||||
this.areas,
|
||||
this.subtitle,
|
||||
this.firstEp,
|
||||
this.canWatch,
|
||||
this.series,
|
||||
this.publish,
|
||||
this.mode,
|
||||
this.section,
|
||||
this.url,
|
||||
this.badgeInfo,
|
||||
this.renewalTime,
|
||||
this.firstEpInfo,
|
||||
this.formalEpCount,
|
||||
this.shortUrl,
|
||||
this.badgeInfos,
|
||||
this.seasonVersion,
|
||||
this.horizontalCover169,
|
||||
this.horizontalCover1610,
|
||||
this.subtitle14,
|
||||
this.viewableCrowdType,
|
||||
this.producers,
|
||||
this.summary,
|
||||
this.styles,
|
||||
this.configAttrs,
|
||||
this.followStatus,
|
||||
this.isNew,
|
||||
this.progress,
|
||||
this.bothFollow,
|
||||
this.subtitle25,
|
||||
});
|
||||
|
||||
factory FavPgcItemModel.fromJson(Map<String, dynamic> json) =>
|
||||
FavPgcItemModel(
|
||||
seasonId: json['season_id'] as int?,
|
||||
mediaId: json['media_id'] as int?,
|
||||
seasonType: json['season_type'] as int?,
|
||||
seasonTypeName: json['season_type_name'] as String?,
|
||||
title: json['title'] as String?,
|
||||
cover: json['cover'] as String?,
|
||||
totalCount: json['total_count'] as int?,
|
||||
isFinish: json['is_finish'] as int?,
|
||||
isStarted: json['is_started'] as int?,
|
||||
isPlay: json['is_play'] as int?,
|
||||
badge: json['badge'] as String?,
|
||||
badgeType: json['badge_type'] as int?,
|
||||
rights: json['rights'] == null
|
||||
? null
|
||||
: Rights.fromJson(json['rights'] as Map<String, dynamic>),
|
||||
stat: json['stat'] == null
|
||||
? null
|
||||
: Stat.fromJson(json['stat'] as Map<String, dynamic>),
|
||||
newEp: json['new_ep'] == null
|
||||
? null
|
||||
: NewEp.fromJson(json['new_ep'] as Map<String, dynamic>),
|
||||
rating: json['rating'] == null
|
||||
? null
|
||||
: Rating.fromJson(json['rating'] as Map<String, dynamic>),
|
||||
squareCover: json['square_cover'] as String?,
|
||||
seasonStatus: json['season_status'] as int?,
|
||||
seasonTitle: json['season_title'] as String?,
|
||||
badgeEp: json['badge_ep'] as String?,
|
||||
mediaAttr: json['media_attr'] as int?,
|
||||
seasonAttr: json['season_attr'] as int?,
|
||||
evaluate: json['evaluate'] as String?,
|
||||
areas: (json['areas'] as List<dynamic>?)
|
||||
?.map((e) => Area.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
subtitle: json['subtitle'] as String?,
|
||||
firstEp: json['first_ep'] as int?,
|
||||
canWatch: json['can_watch'] as int?,
|
||||
series: json['series'] == null
|
||||
? null
|
||||
: Series.fromJson(json['series'] as Map<String, dynamic>),
|
||||
publish: json['publish'] == null
|
||||
? null
|
||||
: Publish.fromJson(json['publish'] as Map<String, dynamic>),
|
||||
mode: json['mode'] as int?,
|
||||
section: (json['section'] as List<dynamic>?)
|
||||
?.map((e) => Section.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
url: json['url'] as String?,
|
||||
badgeInfo: json['badge_info'] == null
|
||||
? null
|
||||
: BadgeInfo.fromJson(json['badge_info'] as Map<String, dynamic>),
|
||||
renewalTime: json['renewal_time'] as String?,
|
||||
firstEpInfo: json['first_ep_info'] == null
|
||||
? null
|
||||
: FirstEpInfo.fromJson(
|
||||
json['first_ep_info'] as Map<String, dynamic>),
|
||||
formalEpCount: json['formal_ep_count'] as int?,
|
||||
shortUrl: json['short_url'] as String?,
|
||||
badgeInfos: json['badge_infos'] == null
|
||||
? null
|
||||
: BadgeInfos.fromJson(json['badge_infos'] as Map<String, dynamic>),
|
||||
seasonVersion: json['season_version'] as String?,
|
||||
horizontalCover169: json['horizontal_cover_16_9'] as String?,
|
||||
horizontalCover1610: json['horizontal_cover_16_10'] as String?,
|
||||
subtitle14: json['subtitle_14'] as String?,
|
||||
viewableCrowdType: json['viewable_crowd_type'] as int?,
|
||||
producers: (json['producers'] as List<dynamic>?)
|
||||
?.map((e) => Producer.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
summary: json['summary'] as String?,
|
||||
styles: (json['styles'] as List?)?.cast(),
|
||||
configAttrs: json['config_attrs'] == null
|
||||
? null
|
||||
: ConfigAttrs.fromJson(
|
||||
json['config_attrs'] as Map<String, dynamic>),
|
||||
followStatus: json['follow_status'] as int?,
|
||||
isNew: json['is_new'] as int?,
|
||||
progress: json['progress'] as String?,
|
||||
bothFollow: json['both_follow'] as bool?,
|
||||
subtitle25: json['subtitle_25'] as String?,
|
||||
);
|
||||
}
|
||||
11
lib/models_new/fav/fav_pgc/multi_img.dart
Normal file
11
lib/models_new/fav/fav_pgc/multi_img.dart
Normal file
@@ -0,0 +1,11 @@
|
||||
class MultiImg {
|
||||
String? color;
|
||||
String? mediumRemind;
|
||||
|
||||
MultiImg({this.color, this.mediumRemind});
|
||||
|
||||
factory MultiImg.fromJson(Map<String, dynamic> json) => MultiImg(
|
||||
color: json['color'] as String?,
|
||||
mediumRemind: json['medium_remind'] as String?,
|
||||
);
|
||||
}
|
||||
29
lib/models_new/fav/fav_pgc/new_ep.dart
Normal file
29
lib/models_new/fav/fav_pgc/new_ep.dart
Normal file
@@ -0,0 +1,29 @@
|
||||
class NewEp {
|
||||
int? id;
|
||||
String? indexShow;
|
||||
String? cover;
|
||||
String? title;
|
||||
String? longTitle;
|
||||
String? pubTime;
|
||||
int? duration;
|
||||
|
||||
NewEp({
|
||||
this.id,
|
||||
this.indexShow,
|
||||
this.cover,
|
||||
this.title,
|
||||
this.longTitle,
|
||||
this.pubTime,
|
||||
this.duration,
|
||||
});
|
||||
|
||||
factory NewEp.fromJson(Map<String, dynamic> json) => NewEp(
|
||||
id: json['id'] as int?,
|
||||
indexShow: json['index_show'] as String?,
|
||||
cover: json['cover'] as String?,
|
||||
title: json['title'] as String?,
|
||||
longTitle: json['long_title'] as String?,
|
||||
pubTime: json['pub_time'] as String?,
|
||||
duration: json['duration'] as int?,
|
||||
);
|
||||
}
|
||||
15
lib/models_new/fav/fav_pgc/producer.dart
Normal file
15
lib/models_new/fav/fav_pgc/producer.dart
Normal file
@@ -0,0 +1,15 @@
|
||||
class Producer {
|
||||
int? mid;
|
||||
int? type;
|
||||
int? isContribute;
|
||||
String? title;
|
||||
|
||||
Producer({this.mid, this.type, this.isContribute, this.title});
|
||||
|
||||
factory Producer.fromJson(Map<String, dynamic> json) => Producer(
|
||||
mid: json['mid'] as int?,
|
||||
type: json['type'] as int?,
|
||||
isContribute: json['is_contribute'] as int?,
|
||||
title: json['title'] as String?,
|
||||
);
|
||||
}
|
||||
20
lib/models_new/fav/fav_pgc/publish.dart
Normal file
20
lib/models_new/fav/fav_pgc/publish.dart
Normal file
@@ -0,0 +1,20 @@
|
||||
class Publish {
|
||||
String? pubTime;
|
||||
String? pubTimeShow;
|
||||
String? releaseDate;
|
||||
String? releaseDateShow;
|
||||
|
||||
Publish({
|
||||
this.pubTime,
|
||||
this.pubTimeShow,
|
||||
this.releaseDate,
|
||||
this.releaseDateShow,
|
||||
});
|
||||
|
||||
factory Publish.fromJson(Map<String, dynamic> json) => Publish(
|
||||
pubTime: json['pub_time'] as String?,
|
||||
pubTimeShow: json['pub_time_show'] as String?,
|
||||
releaseDate: json['release_date'] as String?,
|
||||
releaseDateShow: json['release_date_show'] as String?,
|
||||
);
|
||||
}
|
||||
11
lib/models_new/fav/fav_pgc/rating.dart
Normal file
11
lib/models_new/fav/fav_pgc/rating.dart
Normal file
@@ -0,0 +1,11 @@
|
||||
class Rating {
|
||||
double? score;
|
||||
int? count;
|
||||
|
||||
Rating({this.score, this.count});
|
||||
|
||||
factory Rating.fromJson(Map<String, dynamic> json) => Rating(
|
||||
score: (json['score'] as num?)?.toDouble(),
|
||||
count: json['count'] as int?,
|
||||
);
|
||||
}
|
||||
23
lib/models_new/fav/fav_pgc/rights.dart
Normal file
23
lib/models_new/fav/fav_pgc/rights.dart
Normal file
@@ -0,0 +1,23 @@
|
||||
class Rights {
|
||||
int? allowReview;
|
||||
int? allowPreview;
|
||||
int? isSelection;
|
||||
int? selectionStyle;
|
||||
int? isRcmd;
|
||||
|
||||
Rights({
|
||||
this.allowReview,
|
||||
this.allowPreview,
|
||||
this.isSelection,
|
||||
this.selectionStyle,
|
||||
this.isRcmd,
|
||||
});
|
||||
|
||||
factory Rights.fromJson(Map<String, dynamic> json) => Rights(
|
||||
allowReview: json['allow_review'] as int?,
|
||||
allowPreview: json['allow_preview'] as int?,
|
||||
isSelection: json['is_selection'] as int?,
|
||||
selectionStyle: json['selection_style'] as int?,
|
||||
isRcmd: json['is_rcmd'] as int?,
|
||||
);
|
||||
}
|
||||
29
lib/models_new/fav/fav_pgc/section.dart
Normal file
29
lib/models_new/fav/fav_pgc/section.dart
Normal file
@@ -0,0 +1,29 @@
|
||||
class Section {
|
||||
int? sectionId;
|
||||
int? seasonId;
|
||||
int? limitGroup;
|
||||
int? watchPlatform;
|
||||
String? copyright;
|
||||
int? banAreaShow;
|
||||
List<int>? episodeIds;
|
||||
|
||||
Section({
|
||||
this.sectionId,
|
||||
this.seasonId,
|
||||
this.limitGroup,
|
||||
this.watchPlatform,
|
||||
this.copyright,
|
||||
this.banAreaShow,
|
||||
this.episodeIds,
|
||||
});
|
||||
|
||||
factory Section.fromJson(Map<String, dynamic> json) => Section(
|
||||
sectionId: json['section_id'] as int?,
|
||||
seasonId: json['season_id'] as int?,
|
||||
limitGroup: json['limit_group'] as int?,
|
||||
watchPlatform: json['watch_platform'] as int?,
|
||||
copyright: json['copyright'] as String?,
|
||||
banAreaShow: json['ban_area_show'] as int?,
|
||||
episodeIds: (json['episode_ids'] as List?)?.cast(),
|
||||
);
|
||||
}
|
||||
23
lib/models_new/fav/fav_pgc/series.dart
Normal file
23
lib/models_new/fav/fav_pgc/series.dart
Normal file
@@ -0,0 +1,23 @@
|
||||
class Series {
|
||||
int? seriesId;
|
||||
String? title;
|
||||
int? seasonCount;
|
||||
int? newSeasonId;
|
||||
int? seriesOrd;
|
||||
|
||||
Series({
|
||||
this.seriesId,
|
||||
this.title,
|
||||
this.seasonCount,
|
||||
this.newSeasonId,
|
||||
this.seriesOrd,
|
||||
});
|
||||
|
||||
factory Series.fromJson(Map<String, dynamic> json) => Series(
|
||||
seriesId: json['series_id'] as int?,
|
||||
title: json['title'] as String?,
|
||||
seasonCount: json['season_count'] as int?,
|
||||
newSeasonId: json['new_season_id'] as int?,
|
||||
seriesOrd: json['series_ord'] as int?,
|
||||
);
|
||||
}
|
||||
35
lib/models_new/fav/fav_pgc/stat.dart
Normal file
35
lib/models_new/fav/fav_pgc/stat.dart
Normal file
@@ -0,0 +1,35 @@
|
||||
class Stat {
|
||||
int? follow;
|
||||
int? view;
|
||||
int? danmaku;
|
||||
int? reply;
|
||||
int? coin;
|
||||
int? seriesFollow;
|
||||
int? seriesView;
|
||||
int? likes;
|
||||
int? favorite;
|
||||
|
||||
Stat({
|
||||
this.follow,
|
||||
this.view,
|
||||
this.danmaku,
|
||||
this.reply,
|
||||
this.coin,
|
||||
this.seriesFollow,
|
||||
this.seriesView,
|
||||
this.likes,
|
||||
this.favorite,
|
||||
});
|
||||
|
||||
factory Stat.fromJson(Map<String, dynamic> json) => Stat(
|
||||
follow: json['follow'] as int?,
|
||||
view: json['view'] as int?,
|
||||
danmaku: json['danmaku'] as int?,
|
||||
reply: json['reply'] as int?,
|
||||
coin: json['coin'] as int?,
|
||||
seriesFollow: json['series_follow'] as int?,
|
||||
seriesView: json['series_view'] as int?,
|
||||
likes: json['likes'] as int?,
|
||||
favorite: json['favorite'] as int?,
|
||||
);
|
||||
}
|
||||
27
lib/models_new/fav/fav_pgc/vip_or_pay.dart
Normal file
27
lib/models_new/fav/fav_pgc/vip_or_pay.dart
Normal file
@@ -0,0 +1,27 @@
|
||||
import 'package:PiliPlus/models_new/fav/fav_pgc/multi_img.dart';
|
||||
|
||||
class VipOrPay {
|
||||
String? text;
|
||||
String? bgColor;
|
||||
String? bgColorNight;
|
||||
String? img;
|
||||
MultiImg? multiImg;
|
||||
|
||||
VipOrPay({
|
||||
this.text,
|
||||
this.bgColor,
|
||||
this.bgColorNight,
|
||||
this.img,
|
||||
this.multiImg,
|
||||
});
|
||||
|
||||
factory VipOrPay.fromJson(Map<String, dynamic> json) => VipOrPay(
|
||||
text: json['text'] as String?,
|
||||
bgColor: json['bg_color'] as String?,
|
||||
bgColorNight: json['bg_color_night'] as String?,
|
||||
img: json['img'] as String?,
|
||||
multiImg: json['multi_img'] == null
|
||||
? null
|
||||
: MultiImg.fromJson(json['multi_img'] as Map<String, dynamic>),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user