UNPKG

@jlenon7/zedjs

Version:

Riot API Library for NodeJS

59 lines (57 loc) 1.58 kB
import { BaseApi } from '../../base/base' import { MatchApi } from './match/match' import { LeagueApi } from './league/league' import { SummonerApi } from './summoner/summoner' import { ThirdPartyCode } from './thirdPartyCode/thirdPartyCode' import { ChampionApi } from './champion/champion' import { SpectatorApi } from './spectator/spectator' import { StatusApi } from './status/status' import { DataDragonService } from './dataDragon/DataDragonService' import { SeedApi } from './seed/seed' import { BaseApiLol } from './base/base.api.lol' import { ClashApi } from './clash/clash.api.lol' /** * Classic league of legends api */ export class LolApi extends BaseApiLol { /** * Match methods */ public readonly Match = new MatchApi(this.getParam()) /** * League methods */ public readonly League = new LeagueApi(this.getParam()) /** * Summoner methods */ public readonly Summoner = new SummonerApi(this.getParam()) /** * Third Party methods */ public readonly ThirdPartyCode = new ThirdPartyCode(this.getParam()) /** * Champion mastery */ public readonly Champion = new ChampionApi(this.getParam()) /** * Spectator methods */ public readonly Spectator = new SpectatorApi(this.getParam()) /** * Status methods */ public readonly Status = new StatusApi(this.getParam()) /** * Clash methods */ public readonly Clash = new ClashApi(this.getParam()) /** * Data dragon */ public readonly DataDragon = new DataDragonService() /** * Seed methods */ public readonly Seed = new SeedApi() }