UNPKG

lol-api-js

Version:

Integration package LoL Riot API and your typescript/javascript

30 lines 1.17 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var ChampionMastery = /** @class */ (function () { function ChampionMastery(jsonObj) { this.championId = jsonObj.championId; this.championLevel = jsonObj.championLevel; this.championPoints = jsonObj.championPoints; this.lastPlayTime = jsonObj.lastPlayTime; this.championPointsSinceLastLevel = jsonObj.championPointsSinceLastLevel; this.championPointsUntilNextLevel = jsonObj.championPointsUntilNextLevel; this.chestGranted = jsonObj.chestGranted; this.tokensEarned = jsonObj.tokensEarned; this.summonerId = jsonObj.summonerId; } return ChampionMastery; }()); exports.default = ChampionMastery; // Response sample // { // "championId": 39, // "championLevel": 7, // "championPoints": 75663, // "lastPlayTime": 1632425405000, // "championPointsSinceLastLevel": 54063, // "championPointsUntilNextLevel": 0, // "chestGranted": true, // "tokensEarned": 0, // "summonerId": "4OamiUKToURz60CXcn0QOZSEjo0OhmQl0ChlSkdWLBEkwQ" // }, //# sourceMappingURL=championMastery.js.map