This commit is contained in:
J. A. Messias 2024-12-18 08:15:29 -03:00
parent 06bf6caadd
commit c90b8e20dc
3 changed files with 14 additions and 27 deletions

View File

@ -18,33 +18,18 @@ class DatabaseStorage implements BaseStorage {
}
@override
Future<void> clearAll() {
// TODO: implement clearAll
throw UnimplementedError();
}
@override
Future<void> delete(String key) {
// TODO: implement delete
throw UnimplementedError();
}
@override
Future<String?> get(String key) {
// TODO: implement get
throw UnimplementedError();
}
Future<void> clearAll() => throw UnimplementedError();
@override
Future<void> init() {
// TODO: implement init
throw UnimplementedError();
}
Future<void> delete(String key) => throw UnimplementedError();
@override
Future<void> set<T>(String key, T value) {
// TODO: implement set
throw UnimplementedError();
}
}
Future<String?> get(String key) => throw UnimplementedError();
@override
Future<void> init() => throw UnimplementedError();
@override
Future<void> set<T>(String key, T value) => throw UnimplementedError();
}

View File

@ -9,6 +9,8 @@ abstract class DatabaseStorageKey implements IDatabaseStorage {
class ProfileStorageKey extends DatabaseStorageKey {
const ProfileStorageKey._(String key) : super(key);
static const String table = 'profileTable';
static const ProfileStorageKey userEmail = ProfileStorageKey._('fre_userEmail');
static const ProfileStorageKey devUUID = ProfileStorageKey._('fre_devUUID');
static const ProfileStorageKey userUUID = ProfileStorageKey._('fre_userUUID');
@ -38,6 +40,8 @@ class ProfileStorageKey extends DatabaseStorageKey {
class LocalsStorageKey extends DatabaseStorageKey {
const LocalsStorageKey._(String key) : super(key);
static const table = 'localTable';
static const LocalsStorageKey petAmount = LocalsStorageKey._('fre_petAmountRegister');
static const LocalsStorageKey whatsapp = LocalsStorageKey._('fre_whatsapp');
static const LocalsStorageKey provisional = LocalsStorageKey._('fre_provisional');

View File

@ -36,8 +36,6 @@ extension SecureStorageKeyExtension on SecureStorageKey {
return 'fre_have_local';
case SecureStorageKey.deviceDescription:
return 'fre_deviceDescription';
default:
return '';
}
}
}