about summary refs log tree commit diff
path: root/MatrixRoomUtils.Core/Interfaces/Services/IStorageProvider.cs
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-06-18 07:03:47 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-06-18 07:04:00 +0200
commitd4f46b4fb6dfd2672a5205ec9de12050a940f56c (patch)
tree90be2b959a41148da84aaffbb1b0a1163aa3288e /MatrixRoomUtils.Core/Interfaces/Services/IStorageProvider.cs
parentStart refactor (diff)
downloadMatrixUtils-d4f46b4fb6dfd2672a5205ec9de12050a940f56c.tar.xz
Partial refactor
Diffstat (limited to 'MatrixRoomUtils.Core/Interfaces/Services/IStorageProvider.cs')
-rw-r--r--MatrixRoomUtils.Core/Interfaces/Services/IStorageProvider.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/MatrixRoomUtils.Core/Interfaces/Services/IStorageProvider.cs b/MatrixRoomUtils.Core/Interfaces/Services/IStorageProvider.cs
new file mode 100644
index 0000000..2540ad7
--- /dev/null
+++ b/MatrixRoomUtils.Core/Interfaces/Services/IStorageProvider.cs
@@ -0,0 +1,17 @@
+namespace MatrixRoomUtils.Core.Interfaces.Services; 
+
+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