UNPKG

trn-rocket-league

Version:

Track any Rocket League player's stats with the Tracker Network API.

19 lines (18 loc) 486 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const _1 = require("./"); class Match { id; isGrouped; date; playlist; stats; constructor(data) { this.id = data.id; this.isGrouped = data.metadata.isGrouped; this.date = new Date(data.metadata.dateCollected); this.playlist = data.metadata.playlist; this.stats = new _1.MatchStats(data.stats); } } exports.default = Match;