From bb8c2637af3b7982e7a4b2fd15e2fbec613d0848 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Fri, 30 Jun 2023 03:36:58 +0200 Subject: Todays progress --- MatrixRoomUtils.Bot/Bot/FileStorageProvider.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'MatrixRoomUtils.Bot') diff --git a/MatrixRoomUtils.Bot/Bot/FileStorageProvider.cs b/MatrixRoomUtils.Bot/Bot/FileStorageProvider.cs index 0061c1f..8b9e726 100644 --- a/MatrixRoomUtils.Bot/Bot/FileStorageProvider.cs +++ b/MatrixRoomUtils.Bot/Bot/FileStorageProvider.cs @@ -23,13 +23,13 @@ public class FileStorageProvider : IStorageProvider { } } - public async Task SaveObject(string key, T value) => await File.WriteAllTextAsync(Path.Join(TargetPath, key), ObjectExtensions.ToJson(value)); + public async Task SaveObjectAsync(string key, T value) => await File.WriteAllTextAsync(Path.Join(TargetPath, key), ObjectExtensions.ToJson(value)); - public async Task LoadObject(string key) => JsonSerializer.Deserialize(await File.ReadAllTextAsync(Path.Join(TargetPath, key))); + public async Task LoadObjectAsync(string key) => JsonSerializer.Deserialize(await File.ReadAllTextAsync(Path.Join(TargetPath, key))); - public async Task ObjectExists(string key) => File.Exists(Path.Join(TargetPath, key)); + public async Task ObjectExistsAsync(string key) => File.Exists(Path.Join(TargetPath, key)); - public async Task> GetAllKeys() => Directory.GetFiles(TargetPath).Select(Path.GetFileName).ToList(); + public async Task> GetAllKeysAsync() => Directory.GetFiles(TargetPath).Select(Path.GetFileName).ToList(); - public async Task DeleteObject(string key) => File.Delete(Path.Join(TargetPath, key)); + public async Task DeleteObjectAsync(string key) => File.Delete(Path.Join(TargetPath, key)); } \ No newline at end of file -- cgit 1.5.1