Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

accountId

accountId: string

championMasteryArray

championMasteryArray: default[]

dataPath

dataPath: string

id

id: string

key

key: string

matchIds

matchIds: string[]

name

name: string

profileIconId

profileIconId: number

puuid

puuid: string

rankedFlex

rankedFlex: default

rankedSolo

rankedSolo: default

region

region: string = "br1"

revisionDate

revisionDate: number

summonerLevel

summonerLevel: number

Methods

buildUrl

  • buildUrl(url: string, identifier: string, args: Object): string
  • Returns the URL with indentifiers, keys and search params`

    remarks

    This method is part of lol-api-js package as a utils function

    example

    const rawURL = "https://www.google.com/"; const identifier = "search"; const args = {q: "I love artifical intelligence"}; const url = buildUrl(rawURL, identifier, args) // url = "https://www.google.com/search?q=I+love+artificial+intelligence"

    Parameters

    • url: string

      string with the href

    • identifier: string

      string to join after the url with @var encodeURI

    • args: Object

      JSON Object with search parameters

    Returns string

    A @var string that represents a URL with keys and params

getChampionMastery

Private getInvolvedSummoners

  • getInvolvedSummoners(participants: string[]): Promise<default[]>
  • Returns an Array of Summoners object with summoners details.

    remarks

    This method is part of lol-api-js package from the Match class

    async

    Parameters

    • participants: string[]

      array of strings (Participant interface)

    Returns Promise<default[]>

    Returns an array of Summoners object.

getLeagues

  • Sets the summoner class properties @var rankedFlex and @var rankedSolo

    remarks

    This method is part of lol-api-js package and API class

    Parameters

    • id: string

    Returns Promise<leagueData[]>

getMatch

  • getMatch(matchId: string): Promise<default>
  • Returns a Match object with match details for a given matchId.

    remarks

    This method is part of lol-api-js package from the Match class

    example

    match = new Match(); match.getMatch(matchId);

    Parameters

    • matchId: string

      matchId that can be acessed through:

      summoner = new Summoner();
      summoner.get(summonerName);
      arrayOfMatchIds = summoner.getMatchIds();

    Returns Promise<default>

getMatchIds

  • getMatchIds(puuid: string, params?: Object): Promise<string[]>
  • Returns an Array of matchIds.

    remarks

    This method is part of lol-api-js package and API class

    Parameters

    • puuid: string
    • params: Object = {}

      optional pre-defined Object: params = {start: 0, count: 20};

    Returns Promise<string[]>

    An array of strings: Array<string>;

getProfileIcon

  • getProfileIcon(): string
  • Returns the path to the icon location`

    remarks

    This method is part of lol-api-js package and Summoner class

    example

    summoner = new Summoner(); summoner.get(summonerName); summoner.getProfileIcon();

    Returns string

    A @var string that represents a path to an .png

getSummoner

  • getSummoner(summonerName: string): Promise<default>
  • Method to retrieve a summoner object from RiotGames API

    remarks

    This method is part of lol-api-js package as a API class method

    example

    const api = new API('your Riot Api Key', 'your local datadragon path'); const summoner = api.getSummoner('summonerName');

    Parameters

    • summonerName: string

      a string containing the summoner name

    Returns Promise<default>

    A @var string that represents a URL with keys and params

Generated using TypeDoc