public int getCSPoints(int type) {
        switch (type) {
            case 1:
                return nxcredit;
            case 4:
                return acash;
            case 2:
                return maplepoints;
            default:
                return 0;
        }
    }