Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IAdminCommand.cs
1using System.Threading.Tasks;
2
4{
11 public delegate Task<string> ResponseCallbackHandler(string Markdown, string MessageId);
12
16 public interface IAdminCommand
17 {
21 string Name
22 {
23 get;
24 }
25
29 string[] Aliases
30 {
31 get;
32 }
33
41 bool AppliesTo(string CommandLine, string[] Arguments, out object Details);
42
51 Task Execute(ChatState State, string[] Arguments, string OrgMessage, object Details, ResponseCallbackHandler ResponseCallback);
52
58 }
59}
Contains an item of information about a command.
Definition: HelpItem.cs:9
Basic interface for administration commands
string[] Aliases
Optional set of aliases. Can be null.
Task Execute(ChatState State, string[] Arguments, string OrgMessage, object Details, ResponseCallbackHandler ResponseCallback)
Executes the command.
bool AppliesTo(string CommandLine, string[] Arguments, out object Details)
If the command is applicable to the given command line.
HelpItem[] GetHelp()
Gets help about the command.
delegate Task< string > ResponseCallbackHandler(string Markdown, string MessageId)
Delegate for response callback handler methods.