mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
feat: show total season/series
Closes #164 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -53,6 +53,7 @@ class Data {
|
||||
dynamic digitalButton;
|
||||
dynamic entry;
|
||||
dynamic live;
|
||||
UgcSeason? ugcSeason;
|
||||
|
||||
Data({
|
||||
this.relation,
|
||||
@@ -79,9 +80,22 @@ class Data {
|
||||
this.digitalButton,
|
||||
this.entry,
|
||||
this.live,
|
||||
this.ugcSeason,
|
||||
});
|
||||
|
||||
factory Data.fromJson(Map<String, dynamic> json) => _$DataFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$DataToJson(this);
|
||||
}
|
||||
|
||||
class UgcSeason {
|
||||
int? count;
|
||||
|
||||
UgcSeason({
|
||||
this.count,
|
||||
});
|
||||
|
||||
UgcSeason.fromJson(Map<String, dynamic> json) {
|
||||
count = json['count'];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,6 +62,9 @@ Data _$DataFromJson(Map<String, dynamic> json) => Data(
|
||||
digitalButton: json['digital_button'],
|
||||
entry: json['entry'],
|
||||
live: json['live'],
|
||||
ugcSeason: json['ugc_season'] != null
|
||||
? UgcSeason.fromJson(json['ugc_season'])
|
||||
: null,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$DataToJson(Data instance) => <String, dynamic>{
|
||||
|
||||
Reference in New Issue
Block a user