mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-25 21:05:52 +08:00
@@ -1,11 +0,0 @@
|
||||
class Freya {
|
||||
int? bubbleShowCnt;
|
||||
int? iconShow;
|
||||
|
||||
Freya({this.bubbleShowCnt, this.iconShow});
|
||||
|
||||
factory Freya.fromJson(Map<String, dynamic> json) => Freya(
|
||||
bubbleShowCnt: json['bubble_show_cnt'] as int?,
|
||||
iconShow: json['icon_show'] as int?,
|
||||
);
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
class PayType {
|
||||
int? allowDiscount;
|
||||
int? allowPack;
|
||||
int? allowTicket;
|
||||
int? allowTimeLimit;
|
||||
int? allowVipDiscount;
|
||||
int? forbidBb;
|
||||
|
||||
PayType({
|
||||
this.allowDiscount,
|
||||
this.allowPack,
|
||||
this.allowTicket,
|
||||
this.allowTimeLimit,
|
||||
this.allowVipDiscount,
|
||||
this.forbidBb,
|
||||
});
|
||||
|
||||
factory PayType.fromJson(Map<String, dynamic> json) => PayType(
|
||||
allowDiscount: json['allow_discount'] as int?,
|
||||
allowPack: json['allow_pack'] as int?,
|
||||
allowTicket: json['allow_ticket'] as int?,
|
||||
allowTimeLimit: json['allow_time_limit'] as int?,
|
||||
allowVipDiscount: json['allow_vip_discount'] as int?,
|
||||
forbidBb: json['forbid_bb'] as int?,
|
||||
);
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
import 'package:PiliPlus/models_new/pgc/pgc_info_model/pay_type.dart';
|
||||
|
||||
class Payment {
|
||||
int? discount;
|
||||
PayType? payType;
|
||||
String? price;
|
||||
String? promotion;
|
||||
String? tip;
|
||||
int? viewStartTime;
|
||||
int? vipDiscount;
|
||||
String? vipFirstPromotion;
|
||||
String? vipPrice;
|
||||
String? vipPromotion;
|
||||
|
||||
Payment({
|
||||
this.discount,
|
||||
this.payType,
|
||||
this.price,
|
||||
this.promotion,
|
||||
this.tip,
|
||||
this.viewStartTime,
|
||||
this.vipDiscount,
|
||||
this.vipFirstPromotion,
|
||||
this.vipPrice,
|
||||
this.vipPromotion,
|
||||
});
|
||||
|
||||
factory Payment.fromJson(Map<String, dynamic> json) => Payment(
|
||||
discount: json['discount'] as int?,
|
||||
payType: json['pay_type'] == null
|
||||
? null
|
||||
: PayType.fromJson(json['pay_type'] as Map<String, dynamic>),
|
||||
price: json['price'] as String?,
|
||||
promotion: json['promotion'] as String?,
|
||||
tip: json['tip'] as String?,
|
||||
viewStartTime: json['view_start_time'] as int?,
|
||||
vipDiscount: json['vip_discount'] as int?,
|
||||
vipFirstPromotion: json['vip_first_promotion'] as String?,
|
||||
vipPrice: json['vip_price'] as String?,
|
||||
vipPromotion: json['vip_promotion'] as String?,
|
||||
);
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
class PlayStrategy {
|
||||
List? strategies;
|
||||
|
||||
PlayStrategy({this.strategies});
|
||||
|
||||
factory PlayStrategy.fromJson(Map<String, dynamic> json) => PlayStrategy(
|
||||
strategies: json['strategies'],
|
||||
);
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
class Positive {
|
||||
int? id;
|
||||
String? title;
|
||||
|
||||
Positive({this.id, this.title});
|
||||
|
||||
factory Positive.fromJson(Map<String, dynamic> json) => Positive(
|
||||
id: json['id'] as int?,
|
||||
title: json['title'] as String?,
|
||||
);
|
||||
}
|
||||
@@ -1,19 +1,14 @@
|
||||
import 'package:PiliPlus/models_new/pgc/pgc_info_model/activity.dart';
|
||||
import 'package:PiliPlus/models_new/pgc/pgc_info_model/area.dart';
|
||||
import 'package:PiliPlus/models_new/pgc/pgc_info_model/episode.dart';
|
||||
import 'package:PiliPlus/models_new/pgc/pgc_info_model/freya.dart';
|
||||
import 'package:PiliPlus/models_new/pgc/pgc_info_model/icon_font.dart';
|
||||
import 'package:PiliPlus/models_new/pgc/pgc_info_model/new_ep.dart';
|
||||
import 'package:PiliPlus/models_new/pgc/pgc_info_model/payment.dart';
|
||||
import 'package:PiliPlus/models_new/pgc/pgc_info_model/play_strategy.dart';
|
||||
import 'package:PiliPlus/models_new/pgc/pgc_info_model/positive.dart';
|
||||
import 'package:PiliPlus/models_new/pgc/pgc_info_model/publish.dart';
|
||||
import 'package:PiliPlus/models_new/pgc/pgc_info_model/rating.dart';
|
||||
import 'package:PiliPlus/models_new/pgc/pgc_info_model/rights.dart';
|
||||
import 'package:PiliPlus/models_new/pgc/pgc_info_model/season.dart';
|
||||
import 'package:PiliPlus/models_new/pgc/pgc_info_model/section.dart';
|
||||
import 'package:PiliPlus/models_new/pgc/pgc_info_model/series.dart';
|
||||
import 'package:PiliPlus/models_new/pgc/pgc_info_model/show.dart';
|
||||
import 'package:PiliPlus/models_new/pgc/pgc_info_model/stat.dart';
|
||||
import 'package:PiliPlus/models_new/pgc/pgc_info_model/up_info.dart';
|
||||
import 'package:PiliPlus/models_new/pgc/pgc_info_model/user_status.dart';
|
||||
@@ -25,11 +20,9 @@ class PgcInfoModel {
|
||||
List<Area>? areas;
|
||||
String? bkgCover;
|
||||
String? cover;
|
||||
bool? deliveryFragmentVideo;
|
||||
bool? enableVt;
|
||||
List<EpisodeItem>? episodes;
|
||||
String? evaluate;
|
||||
Freya? freya;
|
||||
int? hideEpVvVtDm;
|
||||
IconFont? iconFont;
|
||||
String? jpTitle;
|
||||
@@ -37,9 +30,6 @@ class PgcInfoModel {
|
||||
int? mediaId;
|
||||
int? mode;
|
||||
NewEp? newEp;
|
||||
Payment? payment;
|
||||
PlayStrategy? playStrategy;
|
||||
Positive? positive;
|
||||
Publish? publish;
|
||||
Rating? rating;
|
||||
String? record;
|
||||
@@ -52,13 +42,11 @@ class PgcInfoModel {
|
||||
String? shareCopy;
|
||||
String? shareSubTitle;
|
||||
String? shareUrl;
|
||||
Show? show;
|
||||
int? showSeasonType;
|
||||
String? squareCover;
|
||||
String? staff;
|
||||
PgcStat? stat;
|
||||
int? status;
|
||||
List? styles;
|
||||
String? subtitle;
|
||||
String? title;
|
||||
int? total;
|
||||
@@ -73,11 +61,9 @@ class PgcInfoModel {
|
||||
this.areas,
|
||||
this.bkgCover,
|
||||
this.cover,
|
||||
this.deliveryFragmentVideo,
|
||||
this.enableVt,
|
||||
this.episodes,
|
||||
this.evaluate,
|
||||
this.freya,
|
||||
this.hideEpVvVtDm,
|
||||
this.iconFont,
|
||||
this.jpTitle,
|
||||
@@ -85,9 +71,6 @@ class PgcInfoModel {
|
||||
this.mediaId,
|
||||
this.mode,
|
||||
this.newEp,
|
||||
this.payment,
|
||||
this.playStrategy,
|
||||
this.positive,
|
||||
this.publish,
|
||||
this.rating,
|
||||
this.record,
|
||||
@@ -100,13 +83,11 @@ class PgcInfoModel {
|
||||
this.shareCopy,
|
||||
this.shareSubTitle,
|
||||
this.shareUrl,
|
||||
this.show,
|
||||
this.showSeasonType,
|
||||
this.squareCover,
|
||||
this.staff,
|
||||
this.stat,
|
||||
this.status,
|
||||
this.styles,
|
||||
this.subtitle,
|
||||
this.title,
|
||||
this.total,
|
||||
@@ -126,15 +107,11 @@ class PgcInfoModel {
|
||||
.toList(),
|
||||
bkgCover: json['bkg_cover'] as String?,
|
||||
cover: json['cover'] as String?,
|
||||
deliveryFragmentVideo: json['delivery_fragment_video'] as bool?,
|
||||
enableVt: json['enable_vt'] as bool?,
|
||||
episodes: (json['episodes'] as List<dynamic>?)
|
||||
?.map((e) => EpisodeItem.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
evaluate: json['evaluate'] as String?,
|
||||
freya: json['freya'] == null
|
||||
? null
|
||||
: Freya.fromJson(json['freya'] as Map<String, dynamic>),
|
||||
hideEpVvVtDm: json['hide_ep_vv_vt_dm'] as int?,
|
||||
iconFont: json['icon_font'] == null
|
||||
? null
|
||||
@@ -146,15 +123,6 @@ class PgcInfoModel {
|
||||
newEp: json['new_ep'] == null
|
||||
? null
|
||||
: NewEp.fromJson(json['new_ep'] as Map<String, dynamic>),
|
||||
payment: json['payment'] == null
|
||||
? null
|
||||
: Payment.fromJson(json['payment'] as Map<String, dynamic>),
|
||||
playStrategy: json['play_strategy'] == null
|
||||
? null
|
||||
: PlayStrategy.fromJson(json['play_strategy'] as Map<String, dynamic>),
|
||||
positive: json['positive'] == null
|
||||
? null
|
||||
: Positive.fromJson(json['positive'] as Map<String, dynamic>),
|
||||
publish: json['publish'] == null
|
||||
? null
|
||||
: Publish.fromJson(json['publish'] as Map<String, dynamic>),
|
||||
@@ -179,9 +147,6 @@ class PgcInfoModel {
|
||||
shareCopy: json['share_copy'] as String?,
|
||||
shareSubTitle: json['share_sub_title'] as String?,
|
||||
shareUrl: json['share_url'] as String?,
|
||||
show: json['show'] == null
|
||||
? null
|
||||
: Show.fromJson(json['show'] as Map<String, dynamic>),
|
||||
showSeasonType: json['show_season_type'] as int?,
|
||||
squareCover: json['square_cover'] as String?,
|
||||
staff: json['staff'] as String?,
|
||||
@@ -189,7 +154,6 @@ class PgcInfoModel {
|
||||
? null
|
||||
: PgcStat.fromJson(json['stat'] as Map<String, dynamic>),
|
||||
status: json['status'] as int?,
|
||||
styles: json['styles'],
|
||||
subtitle: json['subtitle'] as String?,
|
||||
title: json['title'] as String?,
|
||||
total: json['total'] as int?,
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
class Show {
|
||||
int? wideScreen;
|
||||
|
||||
Show({this.wideScreen});
|
||||
|
||||
factory Show.fromJson(Map<String, dynamic> json) => Show(
|
||||
wideScreen: json['wide_screen'] as int?,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user