mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-21 17:46:24 +08:00
feat: fold dyn
Closes #1153 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -5,6 +5,7 @@ import 'package:PiliPlus/models/common/dynamic/dynamics_type.dart';
|
||||
import 'package:PiliPlus/models/dynamics/article_content_model.dart';
|
||||
import 'package:PiliPlus/models/model_avatar.dart';
|
||||
import 'package:PiliPlus/models_new/live/live_feed_index/watched_show.dart';
|
||||
import 'package:PiliPlus/utils/extension.dart';
|
||||
import 'package:PiliPlus/utils/storage_pref.dart';
|
||||
|
||||
class DynamicsDataModel {
|
||||
@@ -162,6 +163,7 @@ class ItemModulesModel {
|
||||
List<ModuleTag>? moduleExtend; // opus的tag
|
||||
List<ArticleContentModel>? moduleContent;
|
||||
ModuleBlocked? moduleBlocked;
|
||||
ModuleFold? moduleFold;
|
||||
|
||||
// moduleBottom
|
||||
|
||||
@@ -179,6 +181,9 @@ class ItemModulesModel {
|
||||
moduleTag = json['module_tag'] != null
|
||||
? ModuleTag.fromJson(json['module_tag'])
|
||||
: null;
|
||||
moduleFold = json['module_fold'] != null
|
||||
? ModuleFold.fromJson(json['module_fold'])
|
||||
: null;
|
||||
}
|
||||
|
||||
ItemModulesModel.fromOpusJson(List json) {
|
||||
@@ -233,6 +238,18 @@ class ItemModulesModel {
|
||||
}
|
||||
}
|
||||
|
||||
class ModuleFold {
|
||||
List<String>? ids;
|
||||
String? statement;
|
||||
int? type;
|
||||
|
||||
ModuleFold.fromJson(Map<String, dynamic> json) {
|
||||
ids = (json['ids'] as List?)?.fromCast();
|
||||
statement = json['statement'];
|
||||
type = json['type'];
|
||||
}
|
||||
}
|
||||
|
||||
class ModuleCollection {
|
||||
String? count;
|
||||
int? id;
|
||||
|
||||
Reference in New Issue
Block a user