mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-05 09:37:52 +08:00
show dyn interaction
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -167,6 +167,7 @@ class ItemModulesModel {
|
||||
List<ArticleContentModel>? moduleContent;
|
||||
ModuleBlocked? moduleBlocked;
|
||||
ModuleFold? moduleFold;
|
||||
ModuleInteraction? moduleInteraction;
|
||||
|
||||
ItemModulesModel.fromJson(Map<String, dynamic> json) {
|
||||
moduleAuthor = json['module_author'] != null
|
||||
@@ -184,6 +185,9 @@ class ItemModulesModel {
|
||||
moduleFold = json['module_fold'] != null
|
||||
? ModuleFold.fromJson(json['module_fold'])
|
||||
: null;
|
||||
moduleInteraction = json['module_interaction'] != null
|
||||
? ModuleInteraction.fromJson(json['module_interaction'])
|
||||
: null;
|
||||
}
|
||||
|
||||
ItemModulesModel.fromOpusJson(List json) {
|
||||
@@ -234,6 +238,28 @@ class ItemModulesModel {
|
||||
}
|
||||
}
|
||||
|
||||
class ModuleInteraction {
|
||||
List<ModuleInteractionItem>? items;
|
||||
|
||||
ModuleInteraction.fromJson(Map<String, dynamic> json) {
|
||||
items = (json['items'] as List?)
|
||||
?.map((e) => ModuleInteractionItem.fromJson(e))
|
||||
.toList();
|
||||
}
|
||||
}
|
||||
|
||||
class ModuleInteractionItem {
|
||||
int? type;
|
||||
DynamicDescModel? desc;
|
||||
|
||||
ModuleInteractionItem.fromJson(Map<String, dynamic> json) {
|
||||
type = json['type'];
|
||||
desc = json["desc"] == null
|
||||
? null
|
||||
: DynamicDescModel.fromJson(json["desc"]);
|
||||
}
|
||||
}
|
||||
|
||||
class ModuleFold {
|
||||
List<String>? ids;
|
||||
String? statement;
|
||||
|
||||
Reference in New Issue
Block a user