How to use the RetrieveData.getInstance(); of a List instead of Object ?
I have created a codeless API name getAllDataFromPersonTable,
when I do: retrieveData.getAllDataFromPersonTableAsync(new AsyncCallback()
since my logic in Codeless creates a List it needs to be an AsyncCallback <List> instead of an object.
So I thought, let’s cast the List to Object with: Object [] result = (Object []) response;
But that does not work as I get: java.util.ArrayList cannot be cast to java.lang.Object[]
RetrieveData retrieveData = RetrieveData.getInstance();
retrieveData.getAllDataFromPersonTableAsync(new AsyncCallback<Object>() {
@Override
public void handleResponse(Object response) {
Object [] result = (Object []) response;
List<Object> people = Arrays.asList(result);
‘com.backendless:backendless:5.3.0’
Can you help me out on this one?
Application ID
9899A2F8-3DC6-5C94-FF20-89FD58136300