mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: member video item
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -8,96 +8,98 @@ part 'item.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class Item {
|
||||
String? title;
|
||||
String? subtitle;
|
||||
String? tname;
|
||||
String? cover;
|
||||
@JsonKey(name: 'cover_icon')
|
||||
String? coverIcon;
|
||||
String? uri;
|
||||
String? param;
|
||||
String? goto;
|
||||
String? length;
|
||||
int? duration;
|
||||
@JsonKey(name: 'is_popular')
|
||||
bool? isPopular;
|
||||
@JsonKey(name: 'is_steins')
|
||||
bool? isSteins;
|
||||
@JsonKey(name: 'is_ugcpay')
|
||||
bool? isUgcpay;
|
||||
@JsonKey(name: 'is_cooperation')
|
||||
bool? isCooperation;
|
||||
@JsonKey(name: 'is_pgc')
|
||||
bool? isPgc;
|
||||
@JsonKey(name: 'is_live_playback')
|
||||
bool? isLivePlayback;
|
||||
@JsonKey(name: 'is_pugv')
|
||||
bool? isPugv;
|
||||
@JsonKey(name: 'is_fold')
|
||||
bool? isFold;
|
||||
@JsonKey(name: 'is_oneself')
|
||||
bool? isOneself;
|
||||
int? play;
|
||||
int? danmaku;
|
||||
int? ctime;
|
||||
@JsonKey(name: 'ugc_pay')
|
||||
int? ugcPay;
|
||||
String? author;
|
||||
bool? state;
|
||||
String? bvid;
|
||||
int? videos;
|
||||
@JsonKey(name: 'three_point')
|
||||
List<ThreePoint>? threePoint;
|
||||
@JsonKey(name: 'first_cid')
|
||||
int? firstCid;
|
||||
@JsonKey(name: 'cursor_attr')
|
||||
CursorAttr? cursorAttr;
|
||||
@JsonKey(name: 'view_content')
|
||||
String? viewContent;
|
||||
@JsonKey(name: 'icon_type')
|
||||
int? iconType;
|
||||
@JsonKey(name: 'publish_time_text')
|
||||
String? publishTimeText;
|
||||
List<Badge>? badges;
|
||||
String? title;
|
||||
String? subtitle;
|
||||
String? tname;
|
||||
String? cover;
|
||||
@JsonKey(name: 'cover_icon')
|
||||
String? coverIcon;
|
||||
String? uri;
|
||||
String? param;
|
||||
String? goto;
|
||||
String? length;
|
||||
int? duration;
|
||||
@JsonKey(name: 'is_popular')
|
||||
bool? isPopular;
|
||||
@JsonKey(name: 'is_steins')
|
||||
bool? isSteins;
|
||||
@JsonKey(name: 'is_ugcpay')
|
||||
bool? isUgcpay;
|
||||
@JsonKey(name: 'is_cooperation')
|
||||
bool? isCooperation;
|
||||
@JsonKey(name: 'is_pgc')
|
||||
bool? isPgc;
|
||||
@JsonKey(name: 'is_live_playback')
|
||||
bool? isLivePlayback;
|
||||
@JsonKey(name: 'is_pugv')
|
||||
bool? isPugv;
|
||||
@JsonKey(name: 'is_fold')
|
||||
bool? isFold;
|
||||
@JsonKey(name: 'is_oneself')
|
||||
bool? isOneself;
|
||||
int? play;
|
||||
int? danmaku;
|
||||
int? ctime;
|
||||
@JsonKey(name: 'ugc_pay')
|
||||
int? ugcPay;
|
||||
String? author;
|
||||
bool? state;
|
||||
String? bvid;
|
||||
int? videos;
|
||||
@JsonKey(name: 'three_point')
|
||||
List<ThreePoint>? threePoint;
|
||||
@JsonKey(name: 'first_cid')
|
||||
int? firstCid;
|
||||
@JsonKey(name: 'cursor_attr')
|
||||
CursorAttr? cursorAttr;
|
||||
@JsonKey(name: 'view_content')
|
||||
String? viewContent;
|
||||
@JsonKey(name: 'icon_type')
|
||||
int? iconType;
|
||||
@JsonKey(name: 'publish_time_text')
|
||||
String? publishTimeText;
|
||||
List<Badge>? badges;
|
||||
Map? season;
|
||||
|
||||
Item({
|
||||
this.title,
|
||||
this.subtitle,
|
||||
this.tname,
|
||||
this.cover,
|
||||
this.coverIcon,
|
||||
this.uri,
|
||||
this.param,
|
||||
this.goto,
|
||||
this.length,
|
||||
this.duration,
|
||||
this.isPopular,
|
||||
this.isSteins,
|
||||
this.isUgcpay,
|
||||
this.isCooperation,
|
||||
this.isPgc,
|
||||
this.isLivePlayback,
|
||||
this.isPugv,
|
||||
this.isFold,
|
||||
this.isOneself,
|
||||
this.play,
|
||||
this.danmaku,
|
||||
this.ctime,
|
||||
this.ugcPay,
|
||||
this.author,
|
||||
this.state,
|
||||
this.bvid,
|
||||
this.videos,
|
||||
this.threePoint,
|
||||
this.firstCid,
|
||||
this.cursorAttr,
|
||||
this.viewContent,
|
||||
this.iconType,
|
||||
this.publishTimeText,
|
||||
this.badges,
|
||||
});
|
||||
Item({
|
||||
this.title,
|
||||
this.subtitle,
|
||||
this.tname,
|
||||
this.cover,
|
||||
this.coverIcon,
|
||||
this.uri,
|
||||
this.param,
|
||||
this.goto,
|
||||
this.length,
|
||||
this.duration,
|
||||
this.isPopular,
|
||||
this.isSteins,
|
||||
this.isUgcpay,
|
||||
this.isCooperation,
|
||||
this.isPgc,
|
||||
this.isLivePlayback,
|
||||
this.isPugv,
|
||||
this.isFold,
|
||||
this.isOneself,
|
||||
this.play,
|
||||
this.danmaku,
|
||||
this.ctime,
|
||||
this.ugcPay,
|
||||
this.author,
|
||||
this.state,
|
||||
this.bvid,
|
||||
this.videos,
|
||||
this.threePoint,
|
||||
this.firstCid,
|
||||
this.cursorAttr,
|
||||
this.viewContent,
|
||||
this.iconType,
|
||||
this.publishTimeText,
|
||||
this.badges,
|
||||
this.season,
|
||||
});
|
||||
|
||||
factory Item.fromJson(Map<String, dynamic> json) => _$ItemFromJson(json);
|
||||
factory Item.fromJson(Map<String, dynamic> json) => _$ItemFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$ItemToJson(this);
|
||||
Map<String, dynamic> toJson() => _$ItemToJson(this);
|
||||
}
|
||||
|
||||
@@ -47,6 +47,7 @@ Item _$ItemFromJson(Map<String, dynamic> json) => Item(
|
||||
badges: (json['badges'] as List<dynamic>?)
|
||||
?.map((e) => Badge.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
season: json['season'],
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$ItemToJson(Item instance) => <String, dynamic>{
|
||||
@@ -84,4 +85,5 @@ Map<String, dynamic> _$ItemToJson(Item instance) => <String, dynamic>{
|
||||
'icon_type': instance.iconType,
|
||||
'publish_time_text': instance.publishTimeText,
|
||||
'badges': instance.badges,
|
||||
'season': instance.season,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user