about summary refs log tree commit diff
path: root/MatrixRoomUtils.Core/Interfaces/IStorageProvider.cs
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-06-17 20:58:51 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-06-17 20:58:51 +0200
commitce7be6bbdf0edf069cb50aee64df187609893b92 (patch)
treecf9775e054a425243c5a7adeef6aa34344d3b49d /MatrixRoomUtils.Core/Interfaces/IStorageProvider.cs
parentAdd changes (diff)
downloadMatrixUtils-ce7be6bbdf0edf069cb50aee64df187609893b92.tar.xz
Start refactor
Diffstat (limited to 'MatrixRoomUtils.Core/Interfaces/IStorageProvider.cs')
-rw-r--r--MatrixRoomUtils.Core/Interfaces/IStorageProvider.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/MatrixRoomUtils.Core/Interfaces/IStorageProvider.cs b/MatrixRoomUtils.Core/Interfaces/IStorageProvider.cs
new file mode 100644
index 0000000..e1a066e
--- /dev/null
+++ b/MatrixRoomUtils.Core/Interfaces/IStorageProvider.cs
@@ -0,0 +1,15 @@
+public interface IStorageProvider {
+    // save 
+    public async Task SaveAll() {
+        Console.WriteLine($"StorageProvider<{GetType().Name}> does not implement Save()!");
+    }
+
+    public async Task SaveObject<T>(string key, T value) {
+        Console.WriteLine($"StorageProvider<{GetType().Name}> does not implement SaveObject<T>(key, value)!");
+    }
+
+    // delete
+    public async Task DeleteObject(string key) {
+        Console.WriteLine($"StorageProvider<{GetType().Name}> does not implement DeleteObject(key)!");
+    }
+}
\ No newline at end of file