Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
917 B
2
Indexable
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;
    }