Fixed problem with the new GetAccounts API wrapper

This commit is contained in:
Nelson R. Perez 2018-06-04 22:39:44 -05:00
parent 40222055aa
commit c956ebadc1

View file

@ -28,10 +28,12 @@ public class GetAccounts implements ApiCallable {
@Override
public ApiCall toApiCall(int apiId, long sequenceId) {
ArrayList<Serializable> params = new ArrayList();
ArrayList<Serializable> params = new ArrayList<>();
ArrayList<Serializable> accountIds = new ArrayList<>();
for(UserAccount userAccount : mUserAccounts){
params.add(userAccount.getObjectId());
accountIds.add(userAccount.getObjectId());
}
params.add(accountIds);
return new ApiCall(apiId, RPC.CALL_GET_ACCOUNTS, params, RPC.VERSION, sequenceId);
}
}