mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-23 10:36:24 +08:00
opt change episode
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -1,21 +1,25 @@
|
||||
import 'package:PiliPlus/models_new/video/video_detail/arc.dart';
|
||||
import 'package:PiliPlus/models_new/video/video_detail/page.dart';
|
||||
|
||||
abstract class BaseEpisodeItem {
|
||||
class BaseEpisodeItem {
|
||||
int? id;
|
||||
int? aid;
|
||||
int? cid;
|
||||
int? epId;
|
||||
String? bvid;
|
||||
String? badge;
|
||||
String? title;
|
||||
String? cover;
|
||||
|
||||
BaseEpisodeItem({
|
||||
this.id,
|
||||
this.aid,
|
||||
this.cid,
|
||||
this.epId,
|
||||
this.bvid,
|
||||
this.badge,
|
||||
this.title,
|
||||
this.cover,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -26,6 +30,8 @@ class EpisodeItem extends BaseEpisodeItem {
|
||||
Arc? arc;
|
||||
Part? page;
|
||||
List<Part>? pages;
|
||||
@override
|
||||
String? get cover => arc?.pic;
|
||||
|
||||
EpisodeItem({
|
||||
this.seasonId,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import 'package:PiliPlus/models_new/video/video_detail/dimension.dart';
|
||||
import 'package:PiliPlus/models_new/video/video_detail/episode.dart';
|
||||
|
||||
class Part {
|
||||
int? cid;
|
||||
class Part extends BaseEpisodeItem {
|
||||
int? page;
|
||||
String? from;
|
||||
String? pagePart;
|
||||
@@ -11,10 +11,9 @@ class Part {
|
||||
Dimension? dimension;
|
||||
int? ctime;
|
||||
String? firstFrame;
|
||||
String? badge;
|
||||
|
||||
Part({
|
||||
this.cid,
|
||||
super.cid,
|
||||
this.page,
|
||||
this.from,
|
||||
this.pagePart,
|
||||
@@ -24,7 +23,7 @@ class Part {
|
||||
this.dimension,
|
||||
this.ctime,
|
||||
this.firstFrame,
|
||||
this.badge,
|
||||
super.badge,
|
||||
});
|
||||
|
||||
factory Part.fromJson(Map<String, dynamic> json) => Part(
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
class Choice {
|
||||
int? id;
|
||||
import 'package:PiliPlus/models_new/video/video_detail/episode.dart';
|
||||
|
||||
class Choice extends BaseEpisodeItem {
|
||||
String? platformAction;
|
||||
String? nativeAction;
|
||||
String? condition;
|
||||
int? cid;
|
||||
String? option;
|
||||
int? isDefault;
|
||||
|
||||
Choice({
|
||||
this.id,
|
||||
super.id,
|
||||
this.platformAction,
|
||||
this.nativeAction,
|
||||
this.condition,
|
||||
this.cid,
|
||||
super.cid,
|
||||
this.option,
|
||||
this.isDefault,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user