UNPKG

node-brawlstars

Version:

Javascript library to communicate with BrawlStars API

21 lines (20 loc) 604 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Brawler = void 0; const base_model_1 = require("./base.model"); class Brawler extends base_model_1.BaseModel { constructor(client, raw) { super(client); this.id = raw.id; this.name = raw.name; this.starPowers = raw.starPowers; this.gadgets = raw.gadgets; } } exports.Brawler = Brawler; (function (Brawler) { function FromRaw(client, raw) { return new Brawler(client, raw); } Brawler.FromRaw = FromRaw; })(Brawler || (exports.Brawler = Brawler = {}));