UNPKG

@jlenon7/zedjs

Version:

Riot API Library for NodeJS

28 lines (27 loc) 1.16 kB
import { MatchListingDto } from '../../../models-dto/matches/match-listing/match-listing.dto'; import { Regions } from '../../../constants'; import { MatchDto } from '../../../models-dto/matches/match/Match.dto'; import { MatchTimelineDto } from '../../../models-dto/matches/match-timeline/match-timeline.dto'; import { MatchQueryDTO } from '../../../models-dto/matches/query/match-query.dto'; import { ApiResponseDTO } from '../../../models-dto'; import { BaseApiLol } from '../base/base.api.lol'; /** * Match methods */ export declare class MatchApi extends BaseApiLol { private generateResponse; private map; /** * Get match details * @param matchId Match id * @param region */ get(matchId: number, region: Regions): Promise<ApiResponseDTO<MatchDto>>; /** * Summoner match listing * @param encryptedAccountId Encrypted summoner ID. Max length 63 characters. * @param region */ list(encryptedAccountId: string, region: Regions, query?: MatchQueryDTO): Promise<ApiResponseDTO<MatchListingDto>>; timeline(matchId: number, region: Regions): Promise<ApiResponseDTO<MatchTimelineDto>>; }