MatchEntry

Methods

(static) getKDA(playerInfo) → {string}

Description:
  • Calculated the kills, deaths, assists ratio based on played performance in the match
Source:
Parameters:
Name Type Description
playerInfo JSON
Returns:
Type
string

(static) getKillParticipation(matchInfo, winStatus) → {number}

Description:
  • Measures how much a player contributed to the overall kill score of the team, the winstatus ensures the participants are on the same team as the summoner
Source:
Parameters:
Name Type Description
matchInfo Array.<Object>
winStatus boolean
Returns:
Type
number

(static) getMatchStatus(playerInfo, gameInfo) → {string}

Description:
  • Based on game duration and end game result returns win component name
Source:
Parameters:
Name Type Description
playerInfo JSON
gameInfo boolean
Returns:
Type
string

(static) getMatchStatusName(playerInfo, gameInfo) → {string}

Description:
  • Based on game duration and end game result returns container component name
Source:
Parameters:
Name Type Description
playerInfo JSON
gameInfo boolean
Returns:
Type
string

(static) getMatchTimeAgo(gameDate) → {string}

Description:
  • Calculates how match time ago a match was played based on current UTC time
Source:
Parameters:
Name Type Description
gameDate string
Returns:
Type
string