Hi there … i can’t seem to get this query to work in kotlin
final ParseQuery query = ParseQuery.getQuery("GameScore");
query.fromLocalDatastore().findInBackground().continueWithTask((task) -> {
// Update UI with results from Local Datastore ...
ParseException error = task.getError();
if(error == null){
List<ParseObject> gameScore = task.getResult();
for(ParseObject game : gameScore){
//...
}
}
// Now query the network:
return query.fromNetwork().findInBackground();
}, Task.UI_EXECUTOR).continueWithTask((task) -> {
// Update UI with results from Network ...
ParseException error = task.getError();
if(error == null){
List<ParseObject> gameScore = task.getResult();
for(ParseObject game : gameScore){
//...
}
}
return task;
}, Task.UI_EXECUTOR);
```can someone translate it to kotlin thanks