Title for identifyable commands

This commit is contained in:
2023-07-29 15:38:50 +02:00
parent fd095df1bb
commit 604294fd2a
38 changed files with 122 additions and 110 deletions

View File

@@ -18,21 +18,24 @@ public class SearchCommand : IUserCommand
}
}
public class IdentifiableSearchCommand : SearchCommand, IIdentifiableUserCommand
public sealed class IdentifiableSearchCommand : SearchCommand, IIdentifiableUserCommand
{
public const string SearchByNameContainsCommandName = "search_name_contains";
public static readonly IdentifiableSearchCommand SearchByNameContains =
new(null, SearchType.NameContains, SearchByNameContainsCommandName);
new(null, SearchType.NameContains, SearchByNameContainsCommandName, "Search by name");
private IdentifiableSearchCommand(
string? searchText,
SearchType searchType,
string commandId)
string commandId,
string title)
: base(searchText, searchType)
{
UserCommandID = commandId;
Title = title;
}
public string UserCommandID { get; }
public string Title { get; }
}