mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-20 00:56:31 +08:00
opt msg unread
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
42
lib/models_new/msgfeed_unread/data.dart
Normal file
42
lib/models_new/msgfeed_unread/data.dart
Normal file
@@ -0,0 +1,42 @@
|
||||
class MsgFeedUnreadData {
|
||||
int at;
|
||||
int coin;
|
||||
int danmu;
|
||||
int favorite;
|
||||
int like;
|
||||
int recvLike;
|
||||
int recvReply;
|
||||
int reply;
|
||||
int sysMsg;
|
||||
int sysMsgStyle;
|
||||
int up;
|
||||
|
||||
MsgFeedUnreadData({
|
||||
required this.at,
|
||||
required this.coin,
|
||||
required this.danmu,
|
||||
required this.favorite,
|
||||
required this.like,
|
||||
required this.recvLike,
|
||||
required this.recvReply,
|
||||
required this.reply,
|
||||
required this.sysMsg,
|
||||
required this.sysMsgStyle,
|
||||
required this.up,
|
||||
});
|
||||
|
||||
factory MsgFeedUnreadData.fromJson(Map<String, dynamic> json) =>
|
||||
MsgFeedUnreadData(
|
||||
at: json['at'] ?? 0,
|
||||
coin: json['coin'] ?? 0,
|
||||
danmu: json['danmu'] ?? 0,
|
||||
favorite: json['favorite'] ?? 0,
|
||||
like: json['like'] ?? 0,
|
||||
recvLike: json['recv_like'] ?? 0,
|
||||
recvReply: json['recv_reply'] ?? 0,
|
||||
reply: json['reply'] ?? 0,
|
||||
sysMsg: json['sys_msg'] ?? 0,
|
||||
sysMsgStyle: json['sys_msg_style'] ?? 0,
|
||||
up: json['up'] ?? 0,
|
||||
);
|
||||
}
|
||||
33
lib/models_new/single_unread/data.dart
Normal file
33
lib/models_new/single_unread/data.dart
Normal file
@@ -0,0 +1,33 @@
|
||||
class SingleUnreadData {
|
||||
int unfollowUnread;
|
||||
int followUnread;
|
||||
int unfollowPushMsg;
|
||||
int dustbinPushMsg;
|
||||
int dustbinUnread;
|
||||
int bizMsgUnfollowUnread;
|
||||
int bizMsgFollowUnread;
|
||||
int customUnread;
|
||||
|
||||
SingleUnreadData({
|
||||
required this.unfollowUnread,
|
||||
required this.followUnread,
|
||||
required this.unfollowPushMsg,
|
||||
required this.dustbinPushMsg,
|
||||
required this.dustbinUnread,
|
||||
required this.bizMsgUnfollowUnread,
|
||||
required this.bizMsgFollowUnread,
|
||||
required this.customUnread,
|
||||
});
|
||||
|
||||
factory SingleUnreadData.fromJson(Map<String, dynamic> json) =>
|
||||
SingleUnreadData(
|
||||
unfollowUnread: json['unfollow_unread'] ?? 0,
|
||||
followUnread: json['follow_unread'] ?? 0,
|
||||
unfollowPushMsg: json['unfollow_push_msg'] ?? 0,
|
||||
dustbinPushMsg: json['dustbin_push_msg'] ?? 0,
|
||||
dustbinUnread: json['dustbin_unread'] ?? 0,
|
||||
bizMsgUnfollowUnread: json['biz_msg_unfollow_unread'] ?? 0,
|
||||
bizMsgFollowUnread: json['biz_msg_follow_unread'] ?? 0,
|
||||
customUnread: json['custom_unread'] ?? 0,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user