WIP
This commit is contained in:
parent
06bf6caadd
commit
c90b8e20dc
|
@ -18,33 +18,18 @@ class DatabaseStorage implements BaseStorage {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
|
||||||
Future<void> clearAll() {
|
|
||||||
// TODO: implement clearAll
|
|
||||||
throw UnimplementedError();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<void> delete(String key) {
|
Future<void> clearAll() => throw UnimplementedError();
|
||||||
// TODO: implement delete
|
|
||||||
throw UnimplementedError();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<String?> get(String key) {
|
Future<void> delete(String key) => throw UnimplementedError();
|
||||||
// TODO: implement get
|
|
||||||
throw UnimplementedError();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<void> init() {
|
Future<String?> get(String key) => throw UnimplementedError();
|
||||||
// TODO: implement init
|
|
||||||
throw UnimplementedError();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<void> set<T>(String key, T value) {
|
Future<void> init() => throw UnimplementedError();
|
||||||
// TODO: implement set
|
@override
|
||||||
throw UnimplementedError();
|
Future<void> set<T>(String key, T value) => throw UnimplementedError();
|
||||||
}
|
|
||||||
}
|
}
|
|
@ -9,6 +9,8 @@ abstract class DatabaseStorageKey implements IDatabaseStorage {
|
||||||
class ProfileStorageKey extends DatabaseStorageKey {
|
class ProfileStorageKey extends DatabaseStorageKey {
|
||||||
const ProfileStorageKey._(String key) : super(key);
|
const ProfileStorageKey._(String key) : super(key);
|
||||||
|
|
||||||
|
static const String table = 'profileTable';
|
||||||
|
|
||||||
static const ProfileStorageKey userEmail = ProfileStorageKey._('fre_userEmail');
|
static const ProfileStorageKey userEmail = ProfileStorageKey._('fre_userEmail');
|
||||||
static const ProfileStorageKey devUUID = ProfileStorageKey._('fre_devUUID');
|
static const ProfileStorageKey devUUID = ProfileStorageKey._('fre_devUUID');
|
||||||
static const ProfileStorageKey userUUID = ProfileStorageKey._('fre_userUUID');
|
static const ProfileStorageKey userUUID = ProfileStorageKey._('fre_userUUID');
|
||||||
|
@ -38,6 +40,8 @@ class ProfileStorageKey extends DatabaseStorageKey {
|
||||||
class LocalsStorageKey extends DatabaseStorageKey {
|
class LocalsStorageKey extends DatabaseStorageKey {
|
||||||
const LocalsStorageKey._(String key) : super(key);
|
const LocalsStorageKey._(String key) : super(key);
|
||||||
|
|
||||||
|
static const table = 'localTable';
|
||||||
|
|
||||||
static const LocalsStorageKey petAmount = LocalsStorageKey._('fre_petAmountRegister');
|
static const LocalsStorageKey petAmount = LocalsStorageKey._('fre_petAmountRegister');
|
||||||
static const LocalsStorageKey whatsapp = LocalsStorageKey._('fre_whatsapp');
|
static const LocalsStorageKey whatsapp = LocalsStorageKey._('fre_whatsapp');
|
||||||
static const LocalsStorageKey provisional = LocalsStorageKey._('fre_provisional');
|
static const LocalsStorageKey provisional = LocalsStorageKey._('fre_provisional');
|
||||||
|
|
|
@ -36,8 +36,6 @@ extension SecureStorageKeyExtension on SecureStorageKey {
|
||||||
return 'fre_have_local';
|
return 'fre_have_local';
|
||||||
case SecureStorageKey.deviceDescription:
|
case SecureStorageKey.deviceDescription:
|
||||||
return 'fre_deviceDescription';
|
return 'fre_deviceDescription';
|
||||||
default:
|
|
||||||
return '';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue