// Path: src/main/java/com/alwaysallthetime/messagebeast/model/FullSyncState.java
// public enum FullSyncState {
//     NOT_STARTED,
//     STARTED,
//     COMPLETE;
// 
//     public static FullSyncState fromOrdinal(int ordinal) {
//         if(ordinal == 0) {
//             return NOT_STARTED;
//         } else if(ordinal == 1) {
//             return STARTED;
//         }
//         return COMPLETE;
//     }
// }


import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import com.alwaysallthetime.adnlib.data.Channel;
import com.alwaysallthetime.adnlib.data.Configuration;
import com.alwaysallthetime.adnlib.data.Token;
import com.alwaysallthetime.adnlib.data.User;
import com.alwaysallthetime.adnlib.gson.AppDotNetGson;
import com.alwaysallthetime.messagebeast.model.FullSyncState;
import com.google.gson.Gson;
import java.util.Date;
package com.alwaysallthetime.messagebeast;




public class ADNSharedPreferences {
    private static final String ACCESS_TOKEN = "accessToken";
    private static final String TOKEN_OBJECT = "tokenObject";
    private static final String CONFIGURATION_OBJECT = "configurationObject";
    private static final String CONFIGURATION_DATE = "configurationDate";
    private static final String USER_OBJECT = "user";
    private static final String CHANNEL_OBJECT = "channel";
    private static final String ACTION_CHANNEL_OBJECT = "actionChannel";
    private static final String FULL_SYNC_STATE = "fullSyncState";

    private static SharedPreferences sPrefs;
    private static Gson gson;

    static {
        sPrefs = PreferenceManager.getDefaultSharedPreferences(ADNApplication.getContext());
        gson = AppDotNetGson.getPersistenceInstance();
    }

// Path: src/main/java/com/alwaysallthetime/messagebeast/model/FullSyncState.java
// public enum FullSyncState {
//     NOT_STARTED,
//     STARTED,
//     COMPLETE;
// 
//     public static FullSyncState fromOrdinal(int ordinal) {
//         if(ordinal == 0) {
//             return NOT_STARTED;
//         } else if(ordinal == 1) {
//             return STARTED;
//         }
//         return COMPLETE;
//     }
// }


// Path: src/main/java/com/alwaysallthetime/messagebeast/ADNSharedPreferences.java
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import com.alwaysallthetime.adnlib.data.Channel;
import com.alwaysallthetime.adnlib.data.Configuration;
import com.alwaysallthetime.adnlib.data.Token;
import com.alwaysallthetime.adnlib.data.User;
import com.alwaysallthetime.adnlib.gson.AppDotNetGson;
import com.alwaysallthetime.messagebeast.model.FullSyncState;
import com.google.gson.Gson;
import java.util.Date;

package com.alwaysallthetime.messagebeast;




public class ADNSharedPreferences {
    private static final String ACCESS_TOKEN = "accessToken";
    private static final String TOKEN_OBJECT = "tokenObject";
    private static final String CONFIGURATION_OBJECT = "configurationObject";
    private static final String CONFIGURATION_DATE = "configurationDate";
    private static final String USER_OBJECT = "user";
    private static final String CHANNEL_OBJECT = "channel";
    private static final String ACTION_CHANNEL_OBJECT = "actionChannel";
    private static final String FULL_SYNC_STATE = "fullSyncState";

    private static SharedPreferences sPrefs;
    private static Gson gson;

    static {
        sPrefs = PreferenceManager.getDefaultSharedPreferences(ADNApplication.getContext());
        gson = AppDotNetGson.getPersistenceInstance();
    }

    public static FullSyncState getFullSyncState(String channelId) {