mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-22 01:56:47 +08:00
Refactor member page (#3)
* refactor: member page * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip
This commit is contained in:
70
lib/models/space_fav/list.dart
Normal file
70
lib/models/space_fav/list.dart
Normal file
@@ -0,0 +1,70 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
import 'upper.dart';
|
||||
|
||||
part 'list.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class FavList {
|
||||
int? id;
|
||||
int? fid;
|
||||
int? mid;
|
||||
int? attr;
|
||||
@JsonKey(name: 'attr_desc')
|
||||
String? attrDesc;
|
||||
String? title;
|
||||
String? cover;
|
||||
Upper? upper;
|
||||
@JsonKey(name: 'cover_type')
|
||||
int? coverType;
|
||||
String? intro;
|
||||
int? ctime;
|
||||
int? mtime;
|
||||
int? state;
|
||||
@JsonKey(name: 'fav_state')
|
||||
int? favState;
|
||||
@JsonKey(name: 'media_count')
|
||||
int? mediaCount;
|
||||
@JsonKey(name: 'view_count')
|
||||
int? viewCount;
|
||||
int? vt;
|
||||
@JsonKey(name: 'is_top')
|
||||
bool? isTop;
|
||||
@JsonKey(name: 'recent_fav')
|
||||
dynamic recentFav;
|
||||
@JsonKey(name: 'play_switch')
|
||||
int? playSwitch;
|
||||
int? type;
|
||||
String? link;
|
||||
String? bvid;
|
||||
|
||||
FavList({
|
||||
this.id,
|
||||
this.fid,
|
||||
this.mid,
|
||||
this.attr,
|
||||
this.attrDesc,
|
||||
this.title,
|
||||
this.cover,
|
||||
this.upper,
|
||||
this.coverType,
|
||||
this.intro,
|
||||
this.ctime,
|
||||
this.mtime,
|
||||
this.state,
|
||||
this.favState,
|
||||
this.mediaCount,
|
||||
this.viewCount,
|
||||
this.vt,
|
||||
this.isTop,
|
||||
this.recentFav,
|
||||
this.playSwitch,
|
||||
this.type,
|
||||
this.link,
|
||||
this.bvid,
|
||||
});
|
||||
|
||||
factory FavList.fromJson(Map<String, dynamic> json) => _$ListFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$ListToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user