This commit is contained in:
2022-06-09 17:49:34 +02:00
parent 9d48caaa58
commit 0b3fe30fec
24 changed files with 254 additions and 34 deletions

View File

@@ -0,0 +1,19 @@
namespace FileTime.App.Core.UserCommand;
public class DeleteCommand : IIdentifiableUserCommand
{
public const string SoftDeleteCommandName = "soft_delete";
public const string HardDeleteCommandName = "hard_delete";
public static DeleteCommand SoftDelete { get; } = new DeleteCommand(SoftDeleteCommandName, false);
public static DeleteCommand HardDelete { get; } = new DeleteCommand(HardDeleteCommandName, true);
private DeleteCommand(string commandName, bool hardDelete)
{
UserCommandID = commandName;
IsHardDelete = hardDelete;
}
public string UserCommandID { get; }
public bool IsHardDelete { get; }
}