use of no.stelar7.api.r4j.pojo.lol.match.v5.LOLMatch in project L4J8 by stelar7.
the class MatchListV5Test method testMatchParticipantIds.
@Test
@Disabled
public void testMatchParticipantIds() {
DataCall.setCacheProvider(new FileSystemCacheProvider());
MatchListBuilder builder = new MatchListBuilder();
Summoner sum = Summoner.byName(LeagueShard.EUW1, "fckmuffin");
LazyList<String> all = sum.getLeagueGames().getLazy();
MatchBuilder mb = new MatchBuilder(sum.getPlatform());
TimelineBuilder tb = new TimelineBuilder(sum.getPlatform());
for (String matchid : all) {
tb = tb.withId(matchid);
mb = mb.withId(matchid);
LOLMatch match = mb.getMatch();
LOLTimeline lolTimeline = tb.getTimeline();
List<TimelineDamageData> wierdEntries = new ArrayList<>();
lolTimeline.getFrames().forEach(frame -> {
frame.getParticipantFrames().forEach((k, v) -> {
if (!k.equals(String.valueOf(v.getParticipantId()))) {
System.out.println(matchid + " has mismatched participantid and key");
}
});
});
}
}
Aggregations