Fixed project structure

This commit is contained in:
Andrew 2023-03-04 12:47:24 +07:00
parent db5745f827
commit 015aa38e16
12 changed files with 1136 additions and 1270 deletions

View file

@ -0,0 +1,6 @@
class AuthData {
final String login;
final String password;
const AuthData(this.login, this.password);
}

View file

@ -0,0 +1,13 @@
class AvailableGame {
final String id;
final String opponentName;
final int tries;
final String neededRole;
AvailableGame({
required this.id,
required this.opponentName,
required this.tries,
required this.neededRole,
});
}

View file

@ -0,0 +1,6 @@
class ChatEntry {
final String from;
final String message;
ChatEntry(this.from, this.message);
}

8
lib/models/game.dart Normal file
View file

@ -0,0 +1,8 @@
class Game {
final String id;
final String player1;
final String player2;
final Set<String> colors;
Game(this.id, this.player1, this.player2, this.colors);
}