Better attachment management

This commit is contained in:
2024-05-20 23:11:26 +08:00
parent a011278fae
commit ff740aab9b
11 changed files with 383 additions and 95 deletions

View File

@ -5,8 +5,8 @@ class Account {
DateTime? deletedAt;
String name;
String nick;
String avatar;
String banner;
dynamic avatar;
dynamic banner;
String description;
String? emailAddress;
int? externalId;

View File

@ -12,7 +12,7 @@ class Post {
dynamic categories;
dynamic reactions;
List<Post>? replies;
List<String>? attachments;
List<int>? attachments;
int? replyId;
int? repostId;
int? realmId;
@ -63,7 +63,7 @@ class Post {
categories: json["categories"],
reactions: json["reactions"],
replies: json["replies"],
attachments: json["attachments"] != null ? List<String>.from(json["attachments"]) : null,
attachments: json["attachments"] != null ? List<int>.from(json["attachments"]) : null,
replyId: json["reply_id"],
repostId: json["repost_id"],
realmId: json["realm_id"],