From aa7026a17ededf7c181ed269c6388491d96e1b1e Mon Sep 17 00:00:00 2001 From: "Emma@Rory&" Date: Mon, 14 Aug 2023 05:07:51 +0200 Subject: Split LibMatrix into submodule --- MatrixRoomUtils.Web/Classes/LocalStorageProviderService.cs | 6 +++--- MatrixRoomUtils.Web/Classes/MRUStorageWrapper.cs | 6 +++--- .../RoomCreationTemplates/DefaultRoomCreationTemplate.cs | 10 +++++----- .../Classes/RoomCreationTemplates/IRoomCreationTemplate.cs | 4 ++-- MatrixRoomUtils.Web/Classes/RoomInfo.cs | 7 +++---- MatrixRoomUtils.Web/Classes/SessionStorageProviderService.cs | 8 ++++---- 6 files changed, 20 insertions(+), 21 deletions(-) (limited to 'MatrixRoomUtils.Web/Classes') diff --git a/MatrixRoomUtils.Web/Classes/LocalStorageProviderService.cs b/MatrixRoomUtils.Web/Classes/LocalStorageProviderService.cs index 256c43d..02d691a 100644 --- a/MatrixRoomUtils.Web/Classes/LocalStorageProviderService.cs +++ b/MatrixRoomUtils.Web/Classes/LocalStorageProviderService.cs @@ -1,7 +1,7 @@ using Blazored.LocalStorage; -using MatrixRoomUtils.Core.Interfaces.Services; +using LibMatrix.Interfaces.Services; -namespace MatrixRoomUtils.Web.Classes; +namespace MatrixRoomUtils.Web.Classes; public class LocalStorageProviderService : IStorageProvider { private readonly ILocalStorageService _localStorageService; @@ -23,4 +23,4 @@ public class LocalStorageProviderService : IStorageProvider { async Task> IStorageProvider.GetAllKeysAsync() => (await _localStorageService.KeysAsync()).ToList(); async Task IStorageProvider.DeleteObjectAsync(string key) => await _localStorageService.RemoveItemAsync(key); -} \ No newline at end of file +} diff --git a/MatrixRoomUtils.Web/Classes/MRUStorageWrapper.cs b/MatrixRoomUtils.Web/Classes/MRUStorageWrapper.cs index d4b256b..e9d56b9 100644 --- a/MatrixRoomUtils.Web/Classes/MRUStorageWrapper.cs +++ b/MatrixRoomUtils.Web/Classes/MRUStorageWrapper.cs @@ -1,6 +1,6 @@ -using MatrixRoomUtils.Core; -using MatrixRoomUtils.Core.Responses; -using MatrixRoomUtils.Core.Services; +using LibMatrix; +using LibMatrix.Responses; +using LibMatrix.Services; using Microsoft.AspNetCore.Components; namespace MatrixRoomUtils.Web.Classes; diff --git a/MatrixRoomUtils.Web/Classes/RoomCreationTemplates/DefaultRoomCreationTemplate.cs b/MatrixRoomUtils.Web/Classes/RoomCreationTemplates/DefaultRoomCreationTemplate.cs index f895173..b6f6d56 100644 --- a/MatrixRoomUtils.Web/Classes/RoomCreationTemplates/DefaultRoomCreationTemplate.cs +++ b/MatrixRoomUtils.Web/Classes/RoomCreationTemplates/DefaultRoomCreationTemplate.cs @@ -1,8 +1,8 @@ using System.Text.Json.Nodes; -using MatrixRoomUtils.Core; -using MatrixRoomUtils.Core.Responses; -using MatrixRoomUtils.Core.StateEventTypes; -using MatrixRoomUtils.Core.StateEventTypes.Spec; +using LibMatrix; +using LibMatrix.Responses; +using LibMatrix.StateEventTypes.Spec; +using LibMatrix.StateEventTypes; namespace MatrixRoomUtils.Web.Classes.RoomCreationTemplates; @@ -89,4 +89,4 @@ public class DefaultRoomCreationTemplate : IRoomCreationTemplate { } } }; -} \ No newline at end of file +} diff --git a/MatrixRoomUtils.Web/Classes/RoomCreationTemplates/IRoomCreationTemplate.cs b/MatrixRoomUtils.Web/Classes/RoomCreationTemplates/IRoomCreationTemplate.cs index bbb09b7..42503f7 100644 --- a/MatrixRoomUtils.Web/Classes/RoomCreationTemplates/IRoomCreationTemplate.cs +++ b/MatrixRoomUtils.Web/Classes/RoomCreationTemplates/IRoomCreationTemplate.cs @@ -1,8 +1,8 @@ -using MatrixRoomUtils.Core.Responses; +using LibMatrix.Responses; namespace MatrixRoomUtils.Web.Classes.RoomCreationTemplates; public interface IRoomCreationTemplate { public CreateRoomRequest CreateRoomRequest { get; } public string Name { get; } -} \ No newline at end of file +} diff --git a/MatrixRoomUtils.Web/Classes/RoomInfo.cs b/MatrixRoomUtils.Web/Classes/RoomInfo.cs index f9d5452..4df81ec 100644 --- a/MatrixRoomUtils.Web/Classes/RoomInfo.cs +++ b/MatrixRoomUtils.Web/Classes/RoomInfo.cs @@ -1,7 +1,6 @@ -using MatrixRoomUtils.Core; -using MatrixRoomUtils.Core.Interfaces; -using MatrixRoomUtils.Core.Responses; -using MatrixRoomUtils.Core.RoomTypes; +using LibMatrix; +using LibMatrix.Responses; +using LibMatrix.RoomTypes; namespace MatrixRoomUtils.Web.Classes; diff --git a/MatrixRoomUtils.Web/Classes/SessionStorageProviderService.cs b/MatrixRoomUtils.Web/Classes/SessionStorageProviderService.cs index e497ee3..6f11cad 100644 --- a/MatrixRoomUtils.Web/Classes/SessionStorageProviderService.cs +++ b/MatrixRoomUtils.Web/Classes/SessionStorageProviderService.cs @@ -1,7 +1,7 @@ using Blazored.SessionStorage; -using MatrixRoomUtils.Core.Interfaces.Services; +using LibMatrix.Interfaces.Services; -namespace MatrixRoomUtils.Web.Classes; +namespace MatrixRoomUtils.Web.Classes; public class SessionStorageProviderService : IStorageProvider { private readonly ISessionStorageService _sessionStorageService; @@ -9,7 +9,7 @@ public class SessionStorageProviderService : IStorageProvider { public SessionStorageProviderService(ISessionStorageService sessionStorage) { _sessionStorageService = sessionStorage; } - + async Task IStorageProvider.SaveAllChildrenAsync(string key, T value) => throw new NotImplementedException(); async Task IStorageProvider.LoadAllChildrenAsync(string key) where T : default => throw new NotImplementedException(); @@ -23,4 +23,4 @@ public class SessionStorageProviderService : IStorageProvider { async Task> IStorageProvider.GetAllKeysAsync() => (await _sessionStorageService.KeysAsync()).ToList(); async Task IStorageProvider.DeleteObjectAsync(string key) => await _sessionStorageService.RemoveItemAsync(key); -} \ No newline at end of file +} -- cgit 1.5.1