我知道Anko提供了parseSingle,parSEOpt和parseList的函数,我不明白为什么Android Developers(该书)的代码需要再次设计扩展parseList.
你可以告诉我吗?谢谢!
override fun requestForecastByZipCode(zipCode: Long,date: Long) = forecastDbHelper.use {
val dailyRequest = "${DayForecastTable.CITY_ID} = ? AND ${DayForecastTable.DATE} >= ?"
val dailyForecast = select(DayForecastTable.NAME)
.whereSimple(dailyRequest,zipCode.toString(),date.toString())
.parseList { DayForecast(HashMap(it)) }
}
fun
最佳答案
原文链接:https://www.f2er.com/android/430164.html