mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-09 02:30:14 +08:00
@@ -1,4 +1,4 @@
|
||||
import 'package:PiliPlus/models_new/sub/sub/upper.dart';
|
||||
import 'package:PiliPlus/models/model_owner.dart';
|
||||
|
||||
class SubItemModel {
|
||||
int? id;
|
||||
@@ -8,7 +8,7 @@ class SubItemModel {
|
||||
String? attrDesc;
|
||||
String? title;
|
||||
String? cover;
|
||||
Upper? upper;
|
||||
Owner? upper;
|
||||
int? coverType;
|
||||
String? intro;
|
||||
int? ctime;
|
||||
@@ -61,7 +61,7 @@ class SubItemModel {
|
||||
cover: json['cover'] as String?,
|
||||
upper: json['upper'] == null
|
||||
? null
|
||||
: Upper.fromJson(json['upper'] as Map<String, dynamic>),
|
||||
: Owner.fromJson(json['upper'] as Map<String, dynamic>),
|
||||
coverType: json['cover_type'] as int?,
|
||||
intro: json['intro'] as String?,
|
||||
ctime: json['ctime'] as int?,
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
class Upper {
|
||||
int? mid;
|
||||
String? name;
|
||||
String? face;
|
||||
String? jumpLink;
|
||||
|
||||
Upper({this.mid, this.name, this.face, this.jumpLink});
|
||||
|
||||
factory Upper.fromJson(Map<String, dynamic> json) => Upper(
|
||||
mid: json['mid'] as int?,
|
||||
name: json['name'] as String?,
|
||||
face: json['face'] as String?,
|
||||
jumpLink: json['jump_link'] as String?,
|
||||
);
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
class CntInfo {
|
||||
int? collect;
|
||||
int? play;
|
||||
int? danmaku;
|
||||
int? vt;
|
||||
|
||||
CntInfo({this.collect, this.play, this.danmaku, this.vt});
|
||||
|
||||
factory CntInfo.fromJson(Map<String, dynamic> json) => CntInfo(
|
||||
collect: json['collect'] as int?,
|
||||
play: json['play'] as int?,
|
||||
danmaku: json['danmaku'] as int?,
|
||||
vt: json['vt'] as int?,
|
||||
);
|
||||
}
|
||||
@@ -1,12 +1,12 @@
|
||||
import 'package:PiliPlus/models_new/sub/sub_detail/cnt_info.dart';
|
||||
import 'package:PiliPlus/models_new/sub/sub_detail/upper.dart';
|
||||
import 'package:PiliPlus/models/model_owner.dart';
|
||||
import 'package:PiliPlus/models_new/fav/fav_detail/cnt_info.dart';
|
||||
|
||||
class Info {
|
||||
int? id;
|
||||
int? seasonType;
|
||||
String? title;
|
||||
String? cover;
|
||||
Upper? upper;
|
||||
Owner? upper;
|
||||
CntInfo? cntInfo;
|
||||
int? mediaCount;
|
||||
String? intro;
|
||||
@@ -31,7 +31,7 @@ class Info {
|
||||
cover: json['cover'] as String?,
|
||||
upper: json['upper'] == null
|
||||
? null
|
||||
: Upper.fromJson(json['upper'] as Map<String, dynamic>),
|
||||
: Owner.fromJson(json['upper'] as Map<String, dynamic>),
|
||||
cntInfo: json['cnt_info'] == null
|
||||
? null
|
||||
: CntInfo.fromJson(json['cnt_info'] as Map<String, dynamic>),
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import 'package:PiliPlus/models_new/sub/sub_detail/cnt_info.dart';
|
||||
import 'package:PiliPlus/models_new/sub/sub_detail/upper.dart';
|
||||
import 'package:PiliPlus/models/model_owner.dart';
|
||||
import 'package:PiliPlus/models_new/fav/fav_detail/cnt_info.dart';
|
||||
|
||||
class SubDetailItemModel {
|
||||
int? id;
|
||||
@@ -8,7 +8,7 @@ class SubDetailItemModel {
|
||||
int? duration;
|
||||
int? pubtime;
|
||||
String? bvid;
|
||||
Upper? upper;
|
||||
Owner? upper;
|
||||
CntInfo? cntInfo;
|
||||
int? enableVt;
|
||||
String? vtDisplay;
|
||||
@@ -38,7 +38,7 @@ class SubDetailItemModel {
|
||||
bvid: json['bvid'] as String?,
|
||||
upper: json['upper'] == null
|
||||
? null
|
||||
: Upper.fromJson(json['upper'] as Map<String, dynamic>),
|
||||
: Owner.fromJson(json['upper'] as Map<String, dynamic>),
|
||||
cntInfo: json['cnt_info'] == null
|
||||
? null
|
||||
: CntInfo.fromJson(json['cnt_info'] as Map<String, dynamic>),
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
class Upper {
|
||||
int? mid;
|
||||
String? name;
|
||||
|
||||
Upper({this.mid, this.name});
|
||||
|
||||
factory Upper.fromJson(Map<String, dynamic> json) => Upper(
|
||||
mid: json['mid'] as int?,
|
||||
name: json['name'] as String?,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user