class Game { constructor ( accessCode, status, people, deck, hasTimer, moderator, hasDedicatedModerator, originalModeratorId, createTime, timerParams = null ) { this.accessCode = accessCode; this.status = status; this.moderator = moderator; this.people = people; this.deck = deck; this.gameSize = deck.reduce( (accumulator, currentValue) => accumulator + currentValue.quantity, 0, ); this.hasTimer = hasTimer; this.hasDedicatedModerator = hasDedicatedModerator; this.originalModeratorId = originalModeratorId; this.createTime = createTime; this.timerParams = timerParams; this.isFull = false; this.timeRemaining = null; this.spectators = []; } } module.exports = Game;