Title for identifyable commands
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
Reference in New Issue
Block a user