Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-12-23 17:07:02 +08:00
parent 7da6f05a50
commit 259e7080f8
6 changed files with 130 additions and 131 deletions

View File

@@ -1,20 +1,26 @@
class FolloweeVote {
int uid;
String name;
String face;
import 'package:PiliPlus/models/model_owner.dart';
class FolloweeVote extends Owner {
String _name;
@override
String get name => _name;
String _face;
@override
String get face => _face;
List<int> votes;
int ctime;
FolloweeVote({
required this.uid,
required this.name,
required this.face,
required super.mid,
required String name,
required String face,
required this.votes,
required this.ctime,
});
}) : _name = name,
_face = face;
factory FolloweeVote.fromJson(Map<String, dynamic> json) => FolloweeVote(
uid: json['uid'],
mid: json['uid'],
name: json['name'],
face: json['face'],
votes: List<int>.from(json['votes']),