namespace AsterNET.Manager.Action { /// /// The CommandAction sends a command line interface (CLI) command to the asterisk server.
/// For a list of supported commands type help on asterisk's command line. ///
public class CommandAction : ManagerAction { protected internal string command; /// /// Creates a new CommandAction. /// public CommandAction() { } /// /// Creates a new CommandAction with the given command. /// /// the CLI command to execute. public CommandAction(string command) { this.command = command; } /// /// Get the name of this action, i.e. "Command". /// public override string Action { get { return "Command"; } } /// /// Get/Set the CLI command to send to the asterisk server. /// public string Command { get { return command; } set { command = value; } } } }