sealed commands
This commit is contained in:
@@ -2,16 +2,16 @@ using FileTime.App.Core.Models.Enums;
|
||||
|
||||
namespace FileTime.App.Core.UserCommand;
|
||||
|
||||
public class PasteCommand : IIdentifiableUserCommand
|
||||
public sealed class PasteCommand : IIdentifiableUserCommand
|
||||
{
|
||||
public const string PasteMergeCommandName = "paste_merge";
|
||||
public const string PasteOverwriteCommandName = "paste_overwrite";
|
||||
public const string PasteSkipCommandName = "paste_skip";
|
||||
|
||||
|
||||
public static PasteCommand Merge { get; } = new PasteCommand(PasteMode.Merge, PasteMergeCommandName);
|
||||
public static PasteCommand Overwrite { get; } = new PasteCommand(PasteMode.Overwrite, PasteOverwriteCommandName);
|
||||
public static PasteCommand Skip { get; } = new PasteCommand(PasteMode.Skip, PasteSkipCommandName);
|
||||
|
||||
|
||||
public PasteMode PasteMode { get; }
|
||||
|
||||
private PasteCommand(PasteMode pasteMode, string commandName)
|
||||
|
||||
Reference in New Issue
Block a user