Search in sources :

Example 1 with ChatMessage

use of com.faforever.client.replay.Replay.ChatMessage 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()));
}
Also used : ChatMessage(com.faforever.client.replay.Replay.ChatMessage) GameOption(com.faforever.client.replay.Replay.GameOption) ReplayData(com.faforever.commons.replay.ReplayData)

Aggregations

ChatMessage (com.faforever.client.replay.Replay.ChatMessage)1 GameOption (com.faforever.client.replay.Replay.GameOption)1 ReplayData (com.faforever.commons.replay.ReplayData)1