Renamed ScoreEntry to Score
This commit is contained in:
@@ -3,7 +3,7 @@ import 'package:tallee/core/enums.dart';
|
||||
import 'package:tallee/data/models/game.dart';
|
||||
import 'package:tallee/data/models/group.dart';
|
||||
import 'package:tallee/data/models/player.dart';
|
||||
import 'package:tallee/data/models/score_entry.dart';
|
||||
import 'package:tallee/data/models/score.dart';
|
||||
import 'package:uuid/uuid.dart';
|
||||
|
||||
class Match {
|
||||
@@ -15,7 +15,7 @@ class Match {
|
||||
final Group? group;
|
||||
final List<Player> players;
|
||||
final String notes;
|
||||
List<ScoreEntry> scores;
|
||||
List<Score> scores;
|
||||
Player? winner;
|
||||
|
||||
Match({
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
class ScoreEntry {
|
||||
class Score {
|
||||
final String playerId;
|
||||
final String matchId;
|
||||
final int roundNumber;
|
||||
int score = 0;
|
||||
int change = 0;
|
||||
|
||||
ScoreEntry({
|
||||
Score({
|
||||
required this.playerId,
|
||||
required this.matchId,
|
||||
required this.roundNumber,
|
||||
@@ -13,7 +13,7 @@ class ScoreEntry {
|
||||
required this.change,
|
||||
});
|
||||
|
||||
ScoreEntry.fromJson(Map<String, dynamic> json)
|
||||
Score.fromJson(Map<String, dynamic> json)
|
||||
: playerId = json['playerId'],
|
||||
matchId = json['matchId'],
|
||||
roundNumber = json['roundNumber'],
|
||||
Reference in New Issue
Block a user