Fixed problem with the new GetAccounts API wrapper

develop
Nelson R. Perez 2018-06-04 22:39:44 -05:00
parent 40222055aa
commit c956ebadc1
1 changed files with 4 additions and 2 deletions

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);
}
}