Files
DoubleSnake/backend/src/Database/ScoreManager/Score.js

12 lines
313 B
JavaScript

class Score{
/** @param {UserManager} usermanager */
constructor(scoreJson){
this.id = scoreJson.id;
this.user1ID = scoreJson.user1;
this.user2ID = scoreJson.user2;
this.score = scoreJson.score;
this.time = new Date(scoreJson.time);
}
}
module.exports = Score;