Fixed problem with the new GetAccounts API wrapper
This commit is contained in:
parent
40222055aa
commit
c956ebadc1
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue