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

37 lines
938 B
C#
Raw Normal View History

2014-01-03 16:39:46 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Asterisk.NET.Manager.Action
{
/// <summary>
/// This action lets you execute any AGI command through the Manager interface
/// For example, check the Asterisk.Net.Test project
/// </summary>
public class AgiAction : ManagerAction
{
public string Channel { get; set; }
public string Command { get; set; }
/// <summary>
/// Get the name of this action, i.e. "AGI".
/// </summary>
override public string Action
{
get { return "AGI"; }
}
/// <summary>
/// Creates a new empty AgiAction.
/// </summary>
public AgiAction(string channel, string command)
{
Channel = channel;
Command = command;
}
}
}