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/Game.dart

44 lines
798 B

import 'package:uuid/uuid.dart';
class Game {
Uuid _id;
DateTime _time;
int _pointsCurrentUser;
bool _isFinished;
List<String> _playerImages = [];
// Constructor
Game(this._id, this._time, this._pointsCurrentUser, this._isFinished, this._playerImages);
// Getters and setters
Uuid get id => _id;
set id(Uuid value) {
_id = value;
}
DateTime get time => _time;
set time(DateTime value) {
_time = value;
}
int get pointsCurrentUser => _pointsCurrentUser;
set pointsCurrentUser(int value) {
_pointsCurrentUser = value;
}
bool get isFinished => _isFinished;
set isFinished(bool value) {
_isFinished = value;
}
List<String> get playerImages => _playerImages;
set playerImages(List<String> value) {
_playerImages = value;
}
}