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.
justMusic/Sources/justMUSIC/lib/model/User.dart

39 lines
591 B

class User {
final int _id;
String _pseudo;
String _country;
String _mail;
String _pp;
List<User> friends = [];
// Constructor
User(this._id, this._pseudo, this._country, this._mail, this._pp);
//Getters and setters
int get id => _id;
String get pseudo => _pseudo;
set pseudo(String value) {
_pseudo = value;
}
String get country => _country;
set country(String value) {
_country = value;
}
String get mail => _mail;
set mail(String value) {
_mail = value;
}
String get pp => _pp;
set pp(String value) {
_pp = value;
}
}