update method
void
update(- String matchID,
- String startTime,
- String player1ID,
- String player1Name,
- String player1Image,
- int player1Elo,
- String player2ID,
- String player2Name,
- String player2Image,
- int player2Elo,
- bool hasStarted,
- bool finished,
- String winner
)
Implementation
void update(
String matchID,
String startTime,
String player1ID,
String player1Name,
String player1Image,
int player1Elo,
String player2ID,
String player2Name,
String player2Image,
int player2Elo,
bool hasStarted,
bool finished,
String winner) {
this.matchID = matchID;
this.startTime = convertirFecha(startTime);
this.player1ID = player1ID;
this.player1Name = player1Name;
this.player1Image = player1Image;
this.player1Elo = player1Elo;
this.player2ID = player2ID;
this.player2Name = player2Name;
this.player2Image = player2Image;
this.player2Elo = player2Elo;
this.hasStarted = hasStarted;
this.finished = finished;
this.winner = winner;
}