mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-20 16:18:39 +00:00
29 lines
601 B
Dart
29 lines
601 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 this._name,
|
|
required this._face,
|
|
required this.votes,
|
|
required this.ctime,
|
|
});
|
|
|
|
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'],
|
|
);
|
|
}
|