2022-01-21 13:41:37 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using Wabbajack.DTOs;
|
|
|
|
|
using Wabbajack.Paths;
|
|
|
|
|
|
|
|
|
|
namespace Wabbajack.App.Blazor.State;
|
|
|
|
|
|
|
|
|
|
public interface IStateContainer
|
|
|
|
|
{
|
|
|
|
|
IEnumerable<ModlistMetadata> Modlists { get; }
|
|
|
|
|
Task<bool> LoadModlistMetadata();
|
|
|
|
|
|
|
|
|
|
IObservable<bool> NavigationAllowedObservable { get; }
|
|
|
|
|
bool NavigationAllowed { get; set; }
|
|
|
|
|
|
|
|
|
|
IObservable<AbsolutePath> ModlistPathObservable { get; }
|
|
|
|
|
AbsolutePath ModlistPath { get; set; }
|
|
|
|
|
|
2022-01-27 07:30:04 +00:00
|
|
|
|
IObservable<AbsolutePath> InstallPathObservable { get; }
|
|
|
|
|
AbsolutePath InstallPath { get; set; }
|
|
|
|
|
|
|
|
|
|
IObservable<AbsolutePath> DownloadPathObservable { get; }
|
|
|
|
|
AbsolutePath DownloadPath { get; set; }
|
|
|
|
|
|
2022-01-21 13:41:37 +00:00
|
|
|
|
IObservable<ModList?> ModlistObservable { get; }
|
|
|
|
|
ModList? Modlist { get; set; }
|
|
|
|
|
|
2022-01-27 07:30:04 +00:00
|
|
|
|
IObservable<string> ModlistImageObservable { get; }
|
|
|
|
|
string ModlistImage { get; set; }
|
|
|
|
|
|
2022-01-21 13:41:37 +00:00
|
|
|
|
IObservable<InstallState> InstallStateObservable { get; }
|
|
|
|
|
InstallState InstallState { get; set; }
|
|
|
|
|
|
|
|
|
|
IObservable<TaskBarState> TaskBarStateObservable { get; }
|
|
|
|
|
TaskBarState TaskBarState { get; set; }
|
|
|
|
|
}
|