edvin
06/21/2018, 9:27 PMNikky
06/22/2018, 7:14 AMabhinay
06/22/2018, 7:15 AMNikky
06/22/2018, 7:17 AM2 controllers as they are 2 views
Nikky
06/22/2018, 7:17 AMNikky
06/22/2018, 7:18 AMabhinay
06/22/2018, 7:19 AMNikky
06/22/2018, 7:19 AMabhinay
06/22/2018, 7:20 AMDamien
06/23/2018, 9:03 AMDamien
06/23/2018, 9:04 AMron
06/24/2018, 7:38 PMcarlw
06/24/2018, 10:03 PMedvin
06/24/2018, 10:06 PMedvin
06/24/2018, 10:07 PMron
06/25/2018, 8:17 AMron
06/25/2018, 8:17 AMron
06/25/2018, 8:18 AMoverride fun updateModel(json: JsonObject) {
with(json) {
name = json.getString("name")
dropAllowed = json.getBoolean("dropAllowed")
children.setAll(json.getJsonArray("children")?.toModel() ?: emptyList<PhotoCategory>())
photolist.setAll(json.getJsonArray("photolist")?.toModel() ?: emptyList<Photo>())
}
ron
06/25/2018, 8:18 AMron
06/25/2018, 8:19 AMron
06/25/2018, 8:19 AMedvin
06/25/2018, 8:26 AMedvin
06/25/2018, 8:30 AMsetAll
should have been a function on Kotlin's MutableList
it seems. But you didn't change Kotlin versions did you?edvin
06/25/2018, 8:31 AMchildren = json.jsonArray("children")?.toModel<PhotoCategory>() ?: emptyList<>()
edvin
06/25/2018, 8:33 AMby
delegate now returns MutableList
, but used to return some subclass of ObservableList
edvin
06/25/2018, 8:35 AMedvin
06/25/2018, 8:36 AMedvin
06/25/2018, 8:38 AMedvin
06/25/2018, 8:40 AMron
06/25/2018, 8:48 AM