feat(DataCollection) Added opt-in data collection
This commit is contained in:
+17
-2
@@ -10,6 +10,7 @@ using Model.Website;
|
||||
using Model.Website.Enums;
|
||||
using Model.Work.Tasks;
|
||||
using Services.Immortal;
|
||||
using Services.Website;
|
||||
|
||||
namespace Services;
|
||||
|
||||
@@ -25,6 +26,12 @@ public interface IToastService
|
||||
void ClearAllToasts();
|
||||
}
|
||||
|
||||
public interface IDataCollectionService
|
||||
{
|
||||
public void SendEvent<T>(string eventName, T eventData);
|
||||
|
||||
}
|
||||
|
||||
public interface IStorageService
|
||||
{
|
||||
public void Subscribe(Action action);
|
||||
@@ -45,8 +52,6 @@ public interface IPermissionService
|
||||
|
||||
public void SetIsStorageEnabled(bool isEnabled);
|
||||
public void SetIsDataCollectionEnabled(bool isEnabled);
|
||||
|
||||
Task Load();
|
||||
}
|
||||
|
||||
public interface ISearchService
|
||||
@@ -69,6 +74,16 @@ public interface ISearchService
|
||||
void Hide();
|
||||
}
|
||||
|
||||
public interface IDialogService
|
||||
{
|
||||
public bool IsVisible { get; set; }
|
||||
public void Subscribe(Action action);
|
||||
public void Unsubscribe(Action action);
|
||||
public void Show(DialogContents dialogContents);
|
||||
public DialogContents GetDialogContents();
|
||||
public void Hide();
|
||||
}
|
||||
|
||||
public interface IVariableService
|
||||
{
|
||||
public Dictionary<string, string> Variables { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user