Untitled
unknown
plain_text
10 months ago
1.4 kB
6
Indexable
Never
private JSONObject getAccountsForDomainWithoutDPP() throws JSONException { // JSONObject response = new JSONObject(); JSONObject data = new JSONObject(); JSONObject responseInfo = new JSONObject(); if(userAccountManager.getUserBean().getIsLoggedIn()){ if (isLargeUser(userAccountManager.getUserBean().getUser())){ data.put("isLargeUser", true); } else { data.put("isLargeUser", false); data.put("account", getAccountsDetails()); } responseInfo.put("error","null"); responseInfo.put("status","Success"); } else{ responseInfo.put("error","User not logged in"); } data.put("responseInfo", responseInfo); // response.put("data",data); return data; } private JSONArray getAccountsDetails() throws JSONException{ JSONArray accounts = new JSONArray(); JSONObject account = new JSONObject(); //account.put("accountId", sfUserBeanViewer.getPurchasableAccountsForDomainWithoutGivenType(SFClassNameConstant.PRIVATE_REGISTRATION_TYPE.getDescription())); account.put("accountId", accountApiService.getSfUserBeanViewer().getAccountsForDomainWithoutPR()); accounts.put(account); return accounts; }