package monnethic.mobile.restApi; import org.json.JSONArray; import org.json.JSONObject; import java.net.URL; import java.util.ArrayList; import monnethic.mobile.wallet.Wallet; public class WalletApiHandler { public ArrayList getUserWallets(String[] params){ ArrayList walletList = new ArrayList<>(); HttpCallHandler httpCallHandler = new HttpCallHandler(); try { String url = Config.WALLET_GET_USER_WALLETS+"?userHash="+params[0]; String responseCall = httpCallHandler.getHttp(new URL(url)); JSONArray jsonArray = new JSONArray(responseCall); for(int i=0; i