feat(Permission) Added start of the Storage feature. Detailed/Plain default toggle

This commit is contained in:
2022-04-24 19:33:18 -04:00
parent 8a4d00054a
commit afaafbe713
20 changed files with 538 additions and 65 deletions
+27 -1
View File
@@ -1,4 +1,5 @@
using Model.BuildOrders;
using Microsoft.AspNetCore.Components.ProtectedBrowserStorage;
using Model.BuildOrders;
using Model.Doc;
using Model.Economy;
using Model.Entity;
@@ -10,6 +11,7 @@ using Model.Website;
using Model.Website.Enums;
using Model.Work.Tasks;
using Services.Immortal;
using Services.Website;
namespace Services;
@@ -25,6 +27,30 @@ public interface IToastService
void ClearAllToasts();
}
public interface IStorageService
{
public void Subscribe(Action action);
public void Unsubscribe(Action action);
T GetValue<T>(string forKey);
void SetValue<T>(string key, T value);
Task Load();
}
public interface IPermissionService
{
public void Subscribe(Action action);
public void Unsubscribe(Action action);
public bool GetIsStorageEnabled();
public bool GetIsDataCollectionEnabled();
public void SetIsStorageEnabled(bool isEnabled);
public void SetIsDataCollectionEnabled(bool isEnabled);
Task Load();
}
public interface ISearchService
{
public List<SearchPointModel> SearchPoints { get; set; }