HomeManager.java 587 Bytes
package com.lotus.town.home;

import com.lotus.town.scManager;
import com.sdk.Sdk;

import java.util.ArrayList;

public class HomeManager {

    public static HomeLevelConfig getCurrentConfig(){
        double money = scManager.getInstance(Sdk.app()).getMoney();
        ArrayList<HomeLevelConfig> configs =  HomeHttpResponse.fadeData().getConfigs();
        if(money <4) {
            return configs.get(0);
        } else if(money <6){
            return configs.get(1);
        } else if(money <10){
            return configs.get(2);
        }
        return configs.get(2);
    }
}