Пример #1
0
 public static String getUsernameFromSharedPreferences(SharedPreferences sharedPreferences) {
   return SharedPreferencesWrapper.getValueFromSharedPreferences(sharedPreferences, USER_NAME);
 }
Пример #2
0
 public static String getKeyForDevice(SharedPreferences sharedPreferences) {
   return SharedPreferencesWrapper.getValueFromSharedPreferences(sharedPreferences, DEVICE_KEY);
 }
Пример #3
0
 public static String getUidForDevice(SharedPreferences sharedPreferences) {
   return SharedPreferencesWrapper.getValueFromSharedPreferences(sharedPreferences, DEVIDE_UID);
 }
Пример #4
0
 public static void registerUsername(SharedPreferences sharedPreferences, String username) {
   SharedPreferencesWrapper.storeValueInSharedPreferences(sharedPreferences, USER_NAME, username);
 }
Пример #5
0
 public static void registerDeviceId(SharedPreferences sharedPreferences, String uid, String key) {
   SharedPreferencesWrapper.storeValueInSharedPreferences(sharedPreferences, DEVIDE_UID, uid);
   SharedPreferencesWrapper.storeValueInSharedPreferences(sharedPreferences, DEVICE_KEY, key);
 }
Пример #6
0
 public static void wipe(SharedPreferences sharedPreferences) {
   SharedPreferencesWrapper.storeValueInSharedPreferences(sharedPreferences, DEVIDE_UID, null);
   SharedPreferencesWrapper.storeValueInSharedPreferences(sharedPreferences, DEVICE_KEY, null);
 }