Source: database/Models/Game/Game.js

  1. /**
  2. * Game with all Informations
  3. */
  4. class Game {
  5. /**
  6. * @constructor
  7. * @param {string} id ID of the game
  8. * @param {string} platformName Name of the platform
  9. * @param {string} name name of the game
  10. * @param {path} coverImage path to the image on the server
  11. * @param {string[]} playerNames all names of players that own the game
  12. */
  13. constructor(id, platformName, name, coverImage, playerNames = []) {
  14. this.id = id;
  15. this.platformName = platformName;
  16. this.name = name;
  17. this.coverImage = coverImage;
  18. this.playerNames = playerNames;
  19. }
  20. }
  21. module.exports = Game;