mirror of
https://github.com/foss42/apidash.git
synced 2025-12-02 02:39:19 +08:00
sharedprefs to hive
This commit is contained in:
@@ -147,11 +147,16 @@ class HiveHandler {
|
||||
Future<dynamic> getHistoryRequest(String id) async =>
|
||||
await historyLazyBox.get(id);
|
||||
Future<void> setHistoryRequest(
|
||||
String id, Map<String, dynamic>? historyRequestJsoon) =>
|
||||
historyLazyBox.put(id, historyRequestJsoon);
|
||||
String id, Map<String, dynamic>? historyRequestJson) =>
|
||||
historyLazyBox.put(id, historyRequestJson);
|
||||
|
||||
Future<void> deleteHistoryRequest(String id) => historyLazyBox.delete(id);
|
||||
|
||||
Future<dynamic> getDashbotMessages() async =>
|
||||
await dashBotBox.get(kKeyDashBotBoxIds);
|
||||
Future<void> saveDashbotMessages(String messages) =>
|
||||
dashBotBox.put(kKeyDashBotBoxIds, messages);
|
||||
|
||||
Future clearAllHistory() async {
|
||||
await historyMetaBox.clear();
|
||||
await historyLazyBox.clear();
|
||||
|
||||
Reference in New Issue
Block a user