// 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;
            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;
                } else {
                    days = (int) Constants.DEFAULT_RESURVEY_DAYS;
                }

            }
        }

        return isRecentTime(KEY_LAST_SURVEYED, days);
    }

    public void touchLastSeen() {
        if(wasRecentlySeen()) return;

        final SharedPreferences prefs = prefs();
        if(prefs == null) return;

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


        editor.putLong(KEY_LAST_SEEN, new Date().getTime()).apply();
    }

    public long getLastSeen() {
// 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;

            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;
                } else {
                    days = (int) Constants.DEFAULT_RESURVEY_DAYS;
                }

            }
        }

        return isRecentTime(KEY_LAST_SURVEYED, days);
    }

    public void touchLastSeen() {
        if(wasRecentlySeen()) return;

        final SharedPreferences prefs = prefs();
        if(prefs == null) return;

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


        editor.putLong(KEY_LAST_SEEN, new Date().getTime()).apply();
    }

    public long getLastSeen() {
        long lastSeen = Constants.NOT_SET;