Files
PiliPlus/lib/models_new/followee_votes/vote.dart
bggRGjQaUbCoE 259e7080f8 opt ui
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
2025-12-23 17:31:05 +08:00

30 lines
639 B
Dart

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 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(
mid: json['uid'],
name: json['name'],
face: json['face'],
votes: List<int>.from(json['votes']),
ctime: json['ctime'],
);
}