mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-26 13:25:49 +08:00
feat: load config from text (#1772)
* feat: load config from text * opt: login utils * update Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me> --------- Co-authored-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
committed by
GitHub
parent
b4daf5fbd8
commit
244ef22f54
@@ -4,22 +4,22 @@ part 'stat.g.dart';
|
||||
|
||||
@HiveType(typeId: 1)
|
||||
class UserStat {
|
||||
UserStat({
|
||||
const UserStat({
|
||||
this.following,
|
||||
this.follower,
|
||||
this.dynamicCount,
|
||||
});
|
||||
|
||||
@HiveField(0)
|
||||
int? following;
|
||||
final int? following;
|
||||
@HiveField(1)
|
||||
int? follower;
|
||||
final int? follower;
|
||||
@HiveField(2)
|
||||
int? dynamicCount;
|
||||
final int? dynamicCount;
|
||||
|
||||
UserStat.fromJson(Map<String, dynamic> json) {
|
||||
following = json['following'];
|
||||
follower = json['follower'];
|
||||
dynamicCount = json['dynamic_count'];
|
||||
}
|
||||
factory UserStat.fromJson(Map<String, dynamic> json) => UserStat(
|
||||
following: json['following'],
|
||||
follower: json['follower'],
|
||||
dynamicCount: json['dynamic_count'],
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user