private static ParticipantForDisplay SetParticipantForDisplay(Match match, Participant participant, ParticipantIdentity participantIdentity) { var pathBuilder = new UrlPathBuilder(); var summonerSpells = GetSummonerSpellsPaths(participant); var runes = GetRunesPaths(participant); return(new ParticipantForDisplay() { ChampionIconUrl = pathBuilder.GetChampionIconUrl(participant.ChampionId), SummonerSpell1IconUrl = pathBuilder.GetSummonerSpellIcon(summonerSpells.Item1.Replace("/lol-game-data/assets/", "").ToLower()), SummonerSpell2IconUrl = pathBuilder.GetSummonerSpellIcon(summonerSpells.Item2.Replace("/lol-game-data/assets/", "").ToLower()), RuneKeystoneIconUrl = runes.Item1, RuneSecondaryPathIconUrl = runes.Item2, KillParticipationPercentage = GetKillParticipation(match, participant), Items = GetItems(participant), ChampionName = Champions.FirstOrDefault(x => x.Key == participant.ChampionId.ToString()) == null ? "Default" : Champions.FirstOrDefault(x => x.Key == participant.ChampionId.ToString()).Name, Participant = participant, ParticipantIdentity = participantIdentity }); }