You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Bowl_in/Sources/bowlin_project/lib/model/User.dart

41 lines
852 B

import 'package:uuid/uuid.dart';
import 'Achievement.dart';
import 'Player.dart';
import 'Stat.dart';
class User extends Player {
String _mail;
List<Achievement> _achievements = <Achievement>[];
List<User> _friends = <User>[];
List<Stat> _stats = <Stat>[];
// Constructor
User(Uuid id, String name, String image, this._mail, this._achievements, this._friends, this._stats)
: super(id, name, image);
// Getters and setters
String get mail => _mail;
set mail(String value) {
_mail = value;
}
List<Achievement> get achievements => _achievements;
set achievements(List<Achievement> value) {
_achievements = value;
}
List<User> get friends => _friends;
set friends(List<User> value) {
_friends = value;
}
List<Stat> get stats => _stats;
set stats(List<Stat> value) {
_stats = value;
}
}