// Path: app/src/main/java/com/jaus/albertogiunta/justintrain_oraritreni/utils/constants/CONST_SP_V0.java
// public static final String SP_SETT_INSTANT_DELAY        = "settings>isInstantDelayEnabled";
// 
// Path: app/src/main/java/com/jaus/albertogiunta/justintrain_oraritreni/utils/constants/CONST_SP_V0.java
// public static final String SP_SETT_NOTIF_AUTO_REMOVE    = "settings>isNotifAutoRemoveEnabled";
// 
// Path: app/src/main/java/com/jaus/albertogiunta/justintrain_oraritreni/utils/constants/CONST_SP_V0.java
// public static final String SP_SETT_NOTIF_COMPACT        = "settings>isNotifCompactEnabled";
// 
// Path: app/src/main/java/com/jaus/albertogiunta/justintrain_oraritreni/utils/constants/CONST_SP_V0.java
// public static final String SP_SETT_NOTIF_LIVE           = "settings>isNotifLiveEnabled";
// 
// Path: app/src/main/java/com/jaus/albertogiunta/justintrain_oraritreni/utils/constants/CONST_SP_V0.java
// public static final String SP_SP_IS_PRO                 = "prefs>isPro";
// 
// Path: app/src/main/java/com/jaus/albertogiunta/justintrain_oraritreni/utils/sharedPreferences/SettingsPreferences.java
// public static void disableGenericSetting(Context context, String CONST) {
//     SharedPreferencesHelper.setSharedPreferenceBoolean(context, CONST, false);
// }
// 
// Path: app/src/main/java/com/jaus/albertogiunta/justintrain_oraritreni/utils/sharedPreferences/SettingsPreferences.java
// public static void enableGenericSetting(Context context, String CONST) {
//     SharedPreferencesHelper.setSharedPreferenceBoolean(context, CONST, true);
// }


import android.content.Context;
import static com.jaus.albertogiunta.justintrain_oraritreni.utils.constants.CONST_SP_V0.SP_SETT_INSTANT_DELAY;
import static com.jaus.albertogiunta.justintrain_oraritreni.utils.constants.CONST_SP_V0.SP_SETT_NOTIF_AUTO_REMOVE;
import static com.jaus.albertogiunta.justintrain_oraritreni.utils.constants.CONST_SP_V0.SP_SETT_NOTIF_COMPACT;
import static com.jaus.albertogiunta.justintrain_oraritreni.utils.constants.CONST_SP_V0.SP_SETT_NOTIF_LIVE;
import static com.jaus.albertogiunta.justintrain_oraritreni.utils.constants.CONST_SP_V0.SP_SP_IS_PRO;
import static com.jaus.albertogiunta.justintrain_oraritreni.utils.sharedPreferences.SettingsPreferences.disableGenericSetting;
import static com.jaus.albertogiunta.justintrain_oraritreni.utils.sharedPreferences.SettingsPreferences.enableGenericSetting;
package com.jaus.albertogiunta.justintrain_oraritreni.utils.sharedPreferences;



public class ProPreferences {

    public static void enableAllPro(Context context) {
        ProPreferences.enablePro(context);
        ProPreferences.enableLiveNotification(context);
        ProPreferences.enableInstantDelay(context);
        ProPreferences.enableCompactNotification(context);
        ProPreferences.enableAutoRemoveNotification(context);
    }

    public static void disableAllPro(Context context) {
        ProPreferences.disablePro(context);
        ProPreferences.disableLiveNotification(context);
        ProPreferences.disableInstantDelay(context);
        ProPreferences.disableCompactNotification(context);
        ProPreferences.disableAutoRemoveNotification(context);
    }

    // instant delay
    public static boolean isPro(Context context) {
        return SharedPreferencesHelper.getSharedPreferenceBoolean(context, SP_SP_IS_PRO, false);
    }

    public static void enablePro(Context context) {
// Path: app/src/main/java/com/jaus/albertogiunta/justintrain_oraritreni/utils/constants/CONST_SP_V0.java
// public static final String SP_SETT_INSTANT_DELAY        = "settings>isInstantDelayEnabled";
// 
// Path: app/src/main/java/com/jaus/albertogiunta/justintrain_oraritreni/utils/constants/CONST_SP_V0.java
// public static final String SP_SETT_NOTIF_AUTO_REMOVE    = "settings>isNotifAutoRemoveEnabled";
// 
// Path: app/src/main/java/com/jaus/albertogiunta/justintrain_oraritreni/utils/constants/CONST_SP_V0.java
// public static final String SP_SETT_NOTIF_COMPACT        = "settings>isNotifCompactEnabled";
// 
// Path: app/src/main/java/com/jaus/albertogiunta/justintrain_oraritreni/utils/constants/CONST_SP_V0.java
// public static final String SP_SETT_NOTIF_LIVE           = "settings>isNotifLiveEnabled";
// 
// Path: app/src/main/java/com/jaus/albertogiunta/justintrain_oraritreni/utils/constants/CONST_SP_V0.java
// public static final String SP_SP_IS_PRO                 = "prefs>isPro";
// 
// Path: app/src/main/java/com/jaus/albertogiunta/justintrain_oraritreni/utils/sharedPreferences/SettingsPreferences.java
// public static void disableGenericSetting(Context context, String CONST) {
//     SharedPreferencesHelper.setSharedPreferenceBoolean(context, CONST, false);
// }
// 
// Path: app/src/main/java/com/jaus/albertogiunta/justintrain_oraritreni/utils/sharedPreferences/SettingsPreferences.java
// public static void enableGenericSetting(Context context, String CONST) {
//     SharedPreferencesHelper.setSharedPreferenceBoolean(context, CONST, true);
// }


// Path: app/src/main/java/com/jaus/albertogiunta/justintrain_oraritreni/utils/sharedPreferences/ProPreferences.java
import android.content.Context;
import static com.jaus.albertogiunta.justintrain_oraritreni.utils.constants.CONST_SP_V0.SP_SETT_INSTANT_DELAY;
import static com.jaus.albertogiunta.justintrain_oraritreni.utils.constants.CONST_SP_V0.SP_SETT_NOTIF_AUTO_REMOVE;
import static com.jaus.albertogiunta.justintrain_oraritreni.utils.constants.CONST_SP_V0.SP_SETT_NOTIF_COMPACT;
import static com.jaus.albertogiunta.justintrain_oraritreni.utils.constants.CONST_SP_V0.SP_SETT_NOTIF_LIVE;
import static com.jaus.albertogiunta.justintrain_oraritreni.utils.constants.CONST_SP_V0.SP_SP_IS_PRO;
import static com.jaus.albertogiunta.justintrain_oraritreni.utils.sharedPreferences.SettingsPreferences.disableGenericSetting;
import static com.jaus.albertogiunta.justintrain_oraritreni.utils.sharedPreferences.SettingsPreferences.enableGenericSetting;

package com.jaus.albertogiunta.justintrain_oraritreni.utils.sharedPreferences;



public class ProPreferences {

    public static void enableAllPro(Context context) {
        ProPreferences.enablePro(context);
        ProPreferences.enableLiveNotification(context);
        ProPreferences.enableInstantDelay(context);
        ProPreferences.enableCompactNotification(context);
        ProPreferences.enableAutoRemoveNotification(context);
    }

    public static void disableAllPro(Context context) {
        ProPreferences.disablePro(context);
        ProPreferences.disableLiveNotification(context);
        ProPreferences.disableInstantDelay(context);
        ProPreferences.disableCompactNotification(context);
        ProPreferences.disableAutoRemoveNotification(context);
    }

    // instant delay
    public static boolean isPro(Context context) {
        return SharedPreferencesHelper.getSharedPreferenceBoolean(context, SP_SP_IS_PRO, false);
    }

    public static void enablePro(Context context) {
        enableGenericSetting(context, SP_SP_IS_PRO);