mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
feat: 消息添加未阅读数量
This commit is contained in:
26
lib/models/msg/msgfeed_unread.dart
Normal file
26
lib/models/msg/msgfeed_unread.dart
Normal file
@@ -0,0 +1,26 @@
|
||||
class MsgFeedUnread {
|
||||
MsgFeedUnread({
|
||||
this.at = 0,
|
||||
this.chat = 0,
|
||||
this.like = 0,
|
||||
this.reply = 0,
|
||||
this.sys_msg = 0,
|
||||
this.up = 0,
|
||||
});
|
||||
|
||||
int at = 0;
|
||||
int chat = 0;
|
||||
int like = 0;
|
||||
int reply = 0;
|
||||
int sys_msg = 0;
|
||||
int up = 0;
|
||||
|
||||
MsgFeedUnread.fromJson(Map<String, dynamic> json) {
|
||||
at = json['at'] ?? 0;
|
||||
chat = json['chat'] ?? 0;
|
||||
like = json['like'] ?? 0;
|
||||
reply = json['reply'] ?? 0;
|
||||
sys_msg = json['sys_msg'] ?? 0;
|
||||
up = json['up'] ?? 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user