using System;
namespace Asterisk.NET.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;
///
/// Get the name of this action, i.e. "Command".
///
override public string Action
{
get { return "Command"; }
}
///
/// Get/Set the CLI command to send to the asterisk server.
///
public string Command
{
get { return this.command; }
set { this.command = value; }
}
///
/// 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;
}
}
}