opt change episode

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-03 10:42:26 +08:00
parent 14fd660ce2
commit cf835e330b
20 changed files with 223 additions and 298 deletions

View File

@@ -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,

View File

@@ -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(

View File

@@ -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,
});