update method

void update(
  1. String matchID,
  2. String startTime,
  3. String player1ID,
  4. String player1Name,
  5. String player1Image,
  6. int player1Elo,
  7. String player2ID,
  8. String player2Name,
  9. String player2Image,
  10. int player2Elo,
  11. bool hasStarted,
  12. bool finished,
  13. 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;
}