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
|