feat: 番剧播放
This commit is contained in:
214
lib/models/bangumi/info.dart
Normal file
214
lib/models/bangumi/info.dart
Normal file
@ -0,0 +1,214 @@
|
||||
class BangumiInfoModel {
|
||||
BangumiInfoModel({
|
||||
this.activity,
|
||||
this.actors,
|
||||
this.alias,
|
||||
this.areas,
|
||||
this.bkgCover,
|
||||
this.cover,
|
||||
this.enableVt,
|
||||
this.episodes,
|
||||
this.evaluate,
|
||||
this.freya,
|
||||
this.jpTitle,
|
||||
this.link,
|
||||
this.mediaId,
|
||||
this.newEp,
|
||||
this.playStrategy,
|
||||
this.positive,
|
||||
this.publish,
|
||||
this.rating,
|
||||
this.record,
|
||||
this.rights,
|
||||
this.seasonId,
|
||||
this.seasonTitle,
|
||||
this.seasons,
|
||||
this.series,
|
||||
this.shareCopy,
|
||||
this.shareSubTitle,
|
||||
this.shareUrl,
|
||||
this.show,
|
||||
this.showSeasonType,
|
||||
this.squareCover,
|
||||
this.stat,
|
||||
this.status,
|
||||
this.styles,
|
||||
this.subTitle,
|
||||
this.title,
|
||||
this.total,
|
||||
this.type,
|
||||
this.userStatus,
|
||||
});
|
||||
|
||||
Map? activity;
|
||||
String? actors;
|
||||
String? alias;
|
||||
List? areas;
|
||||
String? bkgCover;
|
||||
String? cover;
|
||||
String? enableVt;
|
||||
List<EpisodeItem>? episodes;
|
||||
String? evaluate;
|
||||
Map? freya;
|
||||
String? jpTitle;
|
||||
String? link;
|
||||
int? mediaId;
|
||||
Map? newEp;
|
||||
Map? playStrategy;
|
||||
Map? positive;
|
||||
Map? publish;
|
||||
Map? rating;
|
||||
String? record;
|
||||
Map? rights;
|
||||
int? seasonId;
|
||||
String? seasonTitle;
|
||||
List? seasons;
|
||||
Map? series;
|
||||
String? shareCopy;
|
||||
String? shareSubTitle;
|
||||
String? shareUrl;
|
||||
Map? show;
|
||||
int? showSeasonType;
|
||||
String? squareCover;
|
||||
Map? stat;
|
||||
int? status;
|
||||
List? styles;
|
||||
String? subTitle;
|
||||
String? title;
|
||||
int? total;
|
||||
int? type;
|
||||
Map? userStatus;
|
||||
|
||||
BangumiInfoModel.fromJson(Map<String, dynamic> json) {
|
||||
activity = json['activity'];
|
||||
actors = json['actors'];
|
||||
alias = json['alias'];
|
||||
areas = json['areas'];
|
||||
bkgCover = json['bkg_cover'];
|
||||
cover = json['cover'];
|
||||
enableVt = json['enableVt'];
|
||||
episodes = json['episodes']
|
||||
.map<EpisodeItem>((e) => EpisodeItem.fromJson(e))
|
||||
.toList();
|
||||
evaluate = json['evaluate'];
|
||||
freya = json['freya'];
|
||||
jpTitle = json['jp_title'];
|
||||
link = json['link'];
|
||||
mediaId = json['media_id'];
|
||||
newEp = json['newEp'];
|
||||
playStrategy = json['play_strategy'];
|
||||
positive = json['positive'];
|
||||
publish = json['publish'];
|
||||
rating = json['rating'];
|
||||
record = json['record'];
|
||||
rights = json['rights'];
|
||||
seasonId = json['season_id'];
|
||||
seasonTitle = json['season_title'];
|
||||
seasons = json['seasons'];
|
||||
series = json['series'];
|
||||
shareCopy = json['share_copy'];
|
||||
shareSubTitle = json['share_sub_title'];
|
||||
shareUrl = json['share_url'];
|
||||
show = json['show'];
|
||||
showSeasonType = json['show_season_type'];
|
||||
squareCover = json['square_cover'];
|
||||
stat = json['stat'];
|
||||
status = json['status'];
|
||||
styles = json['styles'];
|
||||
subTitle = json['sub_title'];
|
||||
title = json['title'];
|
||||
total = json['total'];
|
||||
type = json['type'];
|
||||
userStatus = json['user_status'];
|
||||
}
|
||||
}
|
||||
|
||||
class EpisodeItem {
|
||||
EpisodeItem({
|
||||
this.aid,
|
||||
this.badge,
|
||||
this.badgeInfo,
|
||||
this.badgeType,
|
||||
this.bvid,
|
||||
this.cid,
|
||||
this.cover,
|
||||
this.dimension,
|
||||
this.duration,
|
||||
this.enableVt,
|
||||
this.from,
|
||||
this.id,
|
||||
this.isViewHide,
|
||||
this.link,
|
||||
this.longTitle,
|
||||
this.pubTime,
|
||||
this.pv,
|
||||
this.releaseDate,
|
||||
this.rights,
|
||||
this.shareCopy,
|
||||
this.shareUrl,
|
||||
this.shortLink,
|
||||
this.skip,
|
||||
this.status,
|
||||
this.subtitle,
|
||||
this.title,
|
||||
this.vid,
|
||||
});
|
||||
|
||||
int? aid;
|
||||
String? badge;
|
||||
Map? badgeInfo;
|
||||
int? badgeType;
|
||||
String? bvid;
|
||||
int? cid;
|
||||
String? cover;
|
||||
Map? dimension;
|
||||
int? duration;
|
||||
bool? enableVt;
|
||||
String? from;
|
||||
int? id;
|
||||
bool? isViewHide;
|
||||
String? link;
|
||||
String? longTitle;
|
||||
int? pubTime;
|
||||
int? pv;
|
||||
String? releaseDate;
|
||||
Map? rights;
|
||||
String? shareCopy;
|
||||
String? shareUrl;
|
||||
String? shortLink;
|
||||
Map? skip;
|
||||
int? status;
|
||||
String? subtitle;
|
||||
String? title;
|
||||
String? vid;
|
||||
|
||||
EpisodeItem.fromJson(Map<String, dynamic> json) {
|
||||
aid = json['aid'];
|
||||
badge = json['badge'];
|
||||
badgeInfo = json['badge_info'];
|
||||
badgeType = json['badge_type'];
|
||||
bvid = json['bvid'];
|
||||
cid = json['cid'];
|
||||
cover = json['cover'];
|
||||
dimension = json['dimension'];
|
||||
duration = json['duration'];
|
||||
enableVt = json['enable_vt'];
|
||||
from = json['from'];
|
||||
id = json['id'];
|
||||
isViewHide = json['is_view_hide'];
|
||||
link = json['link'];
|
||||
longTitle = json['long_title'];
|
||||
pubTime = json['pub_time'];
|
||||
pv = json['pv'];
|
||||
releaseDate = json['release_date'];
|
||||
rights = json['rights'];
|
||||
shareCopy = json['share_copy'];
|
||||
shareUrl = json['share_url'];
|
||||
shortLink = json['short_link'];
|
||||
skip = json['skip'];
|
||||
status = json['status'];
|
||||
subtitle = json['subtitle'];
|
||||
title = json['title'];
|
||||
vid = json['vid'];
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user