// Path: androidsdk/src/main/java/com/wootric/androidsdk/Constants.java
// public class Constants {
// 
//     public static final long DAY_IN_MILLIS = 1000L *60L *60L *24L;
// 
//     public static final int NOT_SET = -1;
// 
//     public static final long DEFAULT_RESURVEY_DAYS = 90L;
// 
//     public static final long DEFAULT_DECLINE_RESURVEY_DAYS = 30L;
// 
//     public static final String TAG = "WOOTRIC_SDK";
// 
//     public static final String CES = "CES";
// 
//     public static final String CSAT = "CSAT";
// }


import android.content.Context;
import android.content.SharedPreferences;
import android.util.Log;
import com.wootric.androidsdk.Constants;
import java.lang.ref.WeakReference;
import java.util.Date;
    }

    public void touchLastSurveyed(boolean responseSent, Integer resurvey_days) {
        final SharedPreferences prefs = prefs();
        if(prefs == null) return;

        SharedPreferences.Editor editor = prefs.edit();
        if(editor == null) return;

        editor.putLong(KEY_LAST_SURVEYED, new Date().getTime());
        if (responseSent) {
            editor.putString(KEY_TYPE, "response");
        } else {
            editor.putString(KEY_TYPE, "decline");
        }
        editor.putInt(KEY_RESURVEY_DAYS, resurvey_days);
        editor.apply();
    }

    public boolean wasRecentlySurveyed() {
        String type;
        Integer days = 90;
        final SharedPreferences prefs = prefs();
        if(prefs != null) {
            type = prefs.getString(KEY_TYPE, "");
            Integer resurvey_days = prefs.getInt(KEY_RESURVEY_DAYS, -1);
            if (resurvey_days >= 0){
                days = resurvey_days;
            } else {
                if (type.equals("decline")){
// Path: androidsdk/src/main/java/com/wootric/androidsdk/Constants.java
// public class Constants {
// 
//     public static final long DAY_IN_MILLIS = 1000L *60L *60L *24L;
// 
//     public static final int NOT_SET = -1;
// 
//     public static final long DEFAULT_RESURVEY_DAYS = 90L;
// 
//     public static final long DEFAULT_DECLINE_RESURVEY_DAYS = 30L;
// 
//     public static final String TAG = "WOOTRIC_SDK";
// 
//     public static final String CES = "CES";
// 
//     public static final String CSAT = "CSAT";
// }


// Path: androidsdk/src/main/java/com/wootric/androidsdk/utils/PreferencesUtils.java
import android.content.Context;
import android.content.SharedPreferences;
import android.util.Log;
import com.wootric.androidsdk.Constants;
import java.lang.ref.WeakReference;
import java.util.Date;

    }

    public void touchLastSurveyed(boolean responseSent, Integer resurvey_days) {
        final SharedPreferences prefs = prefs();
        if(prefs == null) return;

        SharedPreferences.Editor editor = prefs.edit();
        if(editor == null) return;

        editor.putLong(KEY_LAST_SURVEYED, new Date().getTime());
        if (responseSent) {
            editor.putString(KEY_TYPE, "response");
        } else {
            editor.putString(KEY_TYPE, "decline");
        }
        editor.putInt(KEY_RESURVEY_DAYS, resurvey_days);
        editor.apply();
    }

    public boolean wasRecentlySurveyed() {
        String type;
        Integer days = 90;
        final SharedPreferences prefs = prefs();
        if(prefs != null) {
            type = prefs.getString(KEY_TYPE, "");
            Integer resurvey_days = prefs.getInt(KEY_RESURVEY_DAYS, -1);
            if (resurvey_days >= 0){
                days = resurvey_days;
            } else {
                if (type.equals("decline")){
                    days = (int) Constants.DEFAULT_DECLINE_RESURVEY_DAYS;