opt: unread & zan grpc & readlist open with browser (#852)

* opt: unread

* opt: zan grpc

* feat: readlist open with browser
This commit is contained in:
My-Responsitories
2025-05-11 18:58:00 +08:00
committed by GitHub
parent 8d34e6f340
commit 72734d4b4e
13 changed files with 127 additions and 208 deletions

View File

@@ -1,26 +1,15 @@
class MsgFeedUnread {
MsgFeedUnread({
this.at = 0,
this.chat = 0,
this.like = 0,
this.reply = 0,
this.sysMsg = 0,
this.up = 0,
});
import 'package:fixnum/fixnum.dart';
class MsgFeedUnread {
int at = 0;
int chat = 0;
int like = 0;
int reply = 0;
int sysMsg = 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;
sysMsg = json['sys_msg'] ?? 0;
up = json['up'] ?? 0;
MsgFeedUnread.fromJson(Map<String, Int64> json) {
at = json['at']?.toInt() ?? 0;
like = json['like']?.toInt() ?? 0;
reply = json['reply']?.toInt() ?? 0;
sysMsg = json['sys_msg']?.toInt() ?? 0;
}
}