use of com.faforever.client.replay.Replay.GameOption in project downlords-faf-client by FAForever.
the class ReplayServiceImpl method enrich.
@Override
public void enrich(Replay replay, Path path) {
ReplayData replayData = replayFileReader.parseReplay(path);
replay.getChatMessages().setAll(replayData.getChatMessages().stream().map(chatMessage -> new ChatMessage(chatMessage.getTime(), chatMessage.getSender(), chatMessage.getMessage())).collect(Collectors.toList()));
replay.getGameOptions().setAll(replayData.getGameOptions().stream().map(gameOption -> new GameOption(gameOption.getKey(), gameOption.getValue())).collect(Collectors.toList()));
}
Aggregations