2015-01-03 15:37:29 +00:00
|
|
|
|
namespace AsterNET.Manager.Action
|
2014-01-03 16:39:46 +00:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2015-01-03 15:37:29 +00:00
|
|
|
|
/// This action lets you execute any AGI command through the Manager interface
|
|
|
|
|
/// For example, check the AsterNET.Test project
|
2014-01-03 16:39:46 +00:00
|
|
|
|
/// </summary>
|
|
|
|
|
public class AgiAction : ManagerAction
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2015-01-03 15:37:29 +00:00
|
|
|
|
/// Creates a new empty AgiAction.
|
2014-01-03 16:39:46 +00:00
|
|
|
|
/// </summary>
|
|
|
|
|
public AgiAction(string channel, string command)
|
|
|
|
|
{
|
|
|
|
|
Channel = channel;
|
|
|
|
|
Command = command;
|
|
|
|
|
}
|
|
|
|
|
|
2015-01-03 15:37:29 +00:00
|
|
|
|
public string Channel { get; set; }
|
|
|
|
|
public string Command { get; set; }
|
2014-01-03 16:39:46 +00:00
|
|
|
|
|
2015-01-03 15:37:29 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Get the name of this action, i.e. "AGI".
|
|
|
|
|
/// </summary>
|
|
|
|
|
public override string Action
|
|
|
|
|
{
|
|
|
|
|
get { return "AGI"; }
|
|
|
|
|
}
|
2014-01-03 16:39:46 +00:00
|
|
|
|
}
|
|
|
|
|
}
|