47 lines
1.1 KiB
C#
47 lines
1.1 KiB
C#
using WebAssembly.Data;
|
|
using WebAssembly.Services;
|
|
|
|
namespace WebAssembly;
|
|
|
|
public interface IToastService
|
|
{
|
|
public void Subscribe(Action action);
|
|
public void Unsubscribe(Action action);
|
|
void AddToast(ToastModel toast);
|
|
void RemoveToast(ToastModel toast);
|
|
bool HasToasts();
|
|
List<ToastModel> GetToasts();
|
|
void AgeToasts();
|
|
void ClearAllToasts();
|
|
}
|
|
|
|
|
|
public interface ISearchService
|
|
{
|
|
public List<SearchPointModel> SearchPoints { get; set; }
|
|
|
|
public Dictionary<string, List<SearchPointModel>> Searches { get; set; }
|
|
|
|
public bool IsVisible { get; set; }
|
|
|
|
public void Subscribe(Action action);
|
|
public void Unsubscribe(Action action);
|
|
|
|
public void Search(string entityId);
|
|
|
|
public Task Load();
|
|
|
|
public bool IsLoaded();
|
|
void Show();
|
|
void Hide();
|
|
}
|
|
|
|
public interface IMyDialogService
|
|
{
|
|
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();
|
|
} |