use of li.naska.bgg.repository.model.BggThreadQueryParams in project bgg-api by tnaskali.
the class ForumsService method getThread.
public Mono<Thread> getThread(Integer id, ThreadParams params) {
BggThreadQueryParams queryParams = threadParamsMapper.toBggModel(params);
queryParams.setId(id);
return threadsRepository.getThread(queryParams).map(xml -> xmlProcessor.toJavaObject(xml, com.boardgamegeek.thread.Thread.class)).map(threadMapper::fromBggModel);
}
Aggregations