Untitled

mail@pastecode.io avatar
unknown
plain_text
20 days ago
917 B
1
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("accounts", "");
            }
            responseInfo.put("error", "null");
            responseInfo.put("status", "Success");
        } else {
            responseInfo.put("error", "User not logged in");
            responseInfo.put("status", "Failed");
        }
        response.put("data",data);
        response.put("responseInfo", responseInfo);
        //data.put("data", data);
        return response;
    }