use of com.faforever.client.api.dto.Player in project downlords-faf-client by FAForever.
the class FafServiceImplTest method createReview.
private Review createReview(String id, String text, int rating, Integer playerId) {
Review review = new Review();
review.setId(id);
review.setText(text);
review.setScore(rating);
Optional.ofNullable(playerId).map(String::valueOf).ifPresent(s -> {
com.faforever.client.player.Player player = new com.faforever.client.player.Player(s);
player.setId(playerId);
review.setPlayer(player);
});
return review;
}
Aggregations