This commit is contained in:
2022-06-09 08:27:51 +02:00
parent 6d9bf7ab32
commit 94e71954ee
21 changed files with 135 additions and 52 deletions

View File

@@ -0,0 +1,6 @@
namespace FileTime.Core.Command;
public interface IRequireInputCommand
{
Task ReadInputs();
}

View File

@@ -1,6 +1,10 @@
using FileTime.Core.Models;
namespace FileTime.Core.Command;
public interface ITransportationCommand : ICommand
{
TransportMode? TransportMode { get; set; }
IList<FullName> Sources { get; }
FullName? Target { get; set; }
}

View File

@@ -0,0 +1,8 @@
namespace FileTime.Core.Command;
public enum TransportMode
{
Merge,
Overwrite,
Skip
}

View File

@@ -1,6 +1,7 @@
namespace FileTime.Core.Interactions;
public interface IInputInterface
public interface IUserCommunicationService
{
Task<bool> ReadInputs(params IInputElement[] fields);
void ShowToastMessage(string text);
}

View File

@@ -1,8 +1,11 @@
using FileTime.Core.Command;
using FileTime.Core.Models;
namespace FileTime.Core.Timeline;
public interface ICommandScheduler
{
Task AddCommand(ICommand command, int? batchId = null, bool toNewBatch = false);
IObservable<FullName> ContainerToRefresh { get; }
void RefreshContainer(FullName container);
}

View File

@@ -0,0 +1,8 @@
using FileTime.Core.Models;
namespace FileTime.Core.Timeline;
public interface ICommandSchedulerNotifier
{
Task RefreshContainer(FullName container);
}