public static String getUsernameFromSharedPreferences(SharedPreferences sharedPreferences) { return SharedPreferencesWrapper.getValueFromSharedPreferences(sharedPreferences, USER_NAME); }
public static String getKeyForDevice(SharedPreferences sharedPreferences) { return SharedPreferencesWrapper.getValueFromSharedPreferences(sharedPreferences, DEVICE_KEY); }
public static String getUidForDevice(SharedPreferences sharedPreferences) { return SharedPreferencesWrapper.getValueFromSharedPreferences(sharedPreferences, DEVIDE_UID); }
public static void registerUsername(SharedPreferences sharedPreferences, String username) { SharedPreferencesWrapper.storeValueInSharedPreferences(sharedPreferences, USER_NAME, username); }
public static void registerDeviceId(SharedPreferences sharedPreferences, String uid, String key) { SharedPreferencesWrapper.storeValueInSharedPreferences(sharedPreferences, DEVIDE_UID, uid); SharedPreferencesWrapper.storeValueInSharedPreferences(sharedPreferences, DEVICE_KEY, key); }
public static void wipe(SharedPreferences sharedPreferences) { SharedPreferencesWrapper.storeValueInSharedPreferences(sharedPreferences, DEVIDE_UID, null); SharedPreferencesWrapper.storeValueInSharedPreferences(sharedPreferences, DEVICE_KEY, null); }