int playerTeamId = obj.getInt("teamId");
// Riot doesn't include this person in the "fellow players" list, which I suppose makes sense
_playerTeam.add(primarySummoner);
for(Object playerObj : obj.getArray("fellowPlayers")) {
TypedObject player = (TypedObject)playerObj;
LeagueSummoner summoner = new LeagueSummoner();
summoner.setId(player.getInt("summonerId"));
_playerChampionSelections.put(summoner.getId(), LeagueChampion.getChampionWithId(player.getInt("championId")));
if(player.getInt("teamId") == playerTeamId)
_playerTeam.add(summoner);
else
_enemyTeam.add(summoner);
}
for(Object statObj : obj.getArray("statistics")) {
TypedObject stat = (TypedObject)statObj;
MatchHistoryStatType type = MatchHistoryStatType.valueOf(stat.getString("statType"));
_stats.put(type, stat.getInt("value"));
}
}