Daniele B
04/07/2021, 3:45 PMfun LocalDb.getCountriesList() : List<CountryData> {
return countriesQueries.getCountriesList(
mapper = { name, population, first_doses, fully_vaccinated ->
CountryData(name = name, population = population, firstDoses = first_doses, fullyVaccinated = fully_vaccinated)
}).executeAsList()
}
kevin.cianfarini
04/07/2021, 3:47 PMDaniele B
04/07/2021, 3:47 PMkevin.cianfarini
04/07/2021, 3:48 PMthis::mapQueryToApiModel
Daniele B
04/07/2021, 3:58 PMfun LocalDb.getCountriesList() : List<CountryData> {
return countriesQueries.getCountriesList(mapper = ::CountryData).executeAsList()
}
kevin.cianfarini
04/07/2021, 4:01 PM