mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2025-07-25 21:04:01 +00:00
No properties are actually making use of the ViewModel/[Reactive] concepts, where normal properties might change after the fact, and users might want to construct an Rx observable from a property and its changes, or a GUI might want to watch (via notifypropertychange) changes. All concepts that are mutable and want to be followed are already able to do so without the ViewModel concepts, as the implement IObservable (IsLoggedIn, for ex) ViewModel ideally should only be used in a GUI, as it's the weird marriage of Rx + real properties that XAML can bind to. The ViewModel is the hybrid glue to bring those two worlds together. In a situation with no GUI, it's unnecessary
22 lines
508 B
C#
22 lines
508 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Input;
|
|
|
|
namespace Wabbajack.Lib.Downloaders
|
|
{
|
|
public interface INeedsLogin
|
|
{
|
|
ICommand TriggerLogin { get; }
|
|
ICommand ClearLogin { get; }
|
|
IObservable<bool> IsLoggedIn { get; }
|
|
string SiteName { get; }
|
|
string MetaInfo { get; }
|
|
Uri SiteURL { get; }
|
|
Uri IconUri { get; }
|
|
}
|
|
}
|