UNPKG

soccer-go

Version:

Soccer CLI for stats and results.

23 lines (22 loc) 729 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const config_1 = __importDefault(require("../config")); class Team { constructor(data) { const baseLink = `${config_1.default.apiBaseUrl}/teams/${data.id}`; this.id = data.id; this.name = data.name; this.code = data.tla; this.shortName = data.shortName; this.squad = data.squad; this.links = { matches: `${baseLink}/matches`, players: `${baseLink}/players`, self: baseLink, }; } } exports.default = Team;