asternet/Asterisk.2013/Asterisk.NET/Manager/Action/CommandAction.cs

45 lines
1.1 KiB
C#
Raw Normal View History

using System;
2014-01-08 14:16:39 +00:00
namespace AsterNET.Manager.Action
{
/// <summary>
/// The CommandAction sends a command line interface (CLI) command to the asterisk server.<br/>
/// For a list of supported commands type <code>help</code> on asterisk's command line.
/// </summary>
public class CommandAction : ManagerAction
{
protected internal string command;
/// <summary>
/// Get the name of this action, i.e. "Command".
/// </summary>
override public string Action
{
get { return "Command"; }
}
/// <summary>
/// Get/Set the CLI command to send to the asterisk server.
/// </summary>
public string Command
{
get { return this.command; }
set { this.command = value; }
}
/// <summary>
/// Creates a new CommandAction.
/// </summary>
public CommandAction()
{
}
/// <summary>
/// Creates a new CommandAction with the given command.
/// </summary>
/// <param name="command">the CLI command to execute.</param>
public CommandAction(string command)
{
this.command = command;
}
}
}