Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ICommand.cs
1using System.Threading.Tasks;
4
5namespace Waher.Things
6{
10 public enum CommandType
11 {
15 Simple,
16
20 Parametrized,
21
25 Query
26 }
27
31 public interface ICommand
32 {
36 string CommandID
37 {
38 get;
39 }
40
45 {
46 get;
47 }
48
53 {
54 get;
55 }
56
60 string SortKey
61 {
62 get;
63 }
64
70
76
82
88
94 Task<bool> CanExecuteAsync(RequestOrigin Caller);
95
100
107
113 }
114}
Contains information about a language.
Definition: Language.cs:17
Class handling the reception of data from a query.
Definition: Query.cs:12
Tokens available in request.
Definition: RequestOrigin.cs:9
Interface for commands.
Definition: ICommand.cs:32
Task< string > GetConfirmationStringAsync(Language Language)
Gets a confirmation string, if any, of the command. If no confirmation is necessary,...
string CommandID
ID of command.
Definition: ICommand.cs:37
string SortCategory
Sort Category, if available.
Definition: ICommand.cs:53
Task< bool > CanExecuteAsync(RequestOrigin Caller)
If the command can be executed by the caller.
CommandType Type
Type of command.
Definition: ICommand.cs:45
string SortKey
Sort Key, if available.
Definition: ICommand.cs:61
Task StartQueryExecutionAsync(Query Query, Language Language)
Starts the execution of a query.
Task< string > GetSuccessStringAsync(Language Language)
Gets a success string, if any, of the command. If no specific success string is available,...
Task< string > GetFailureStringAsync(Language Language)
Gets a failure string, if any, of the command. If no specific failure string is available,...
ICommand Copy()
Creates a copy of the command object.
Task ExecuteCommandAsync()
Executes the command.
Task< string > GetNameAsync(Language Language)
Gets the name of data source.
CommandType
Command type.
Definition: ICommand.cs:11