using System; namespace AsterNET.Manager.Event { /// /// AgiExecEvents are triggered when an AGI command is executed.
/// For each command two events are triggered: one before excution ("Start") and one after execution ("End"). ///
public class AGIExecEvent : ManagerEvent { private string subEvent; private long commandId; private string command; private int resultCode; private string result; /// /// Creates a new AGIExecEvent. /// public AGIExecEvent(ManagerConnection source) : base(source) { } public long CommandId { get { return commandId; } set { this.commandId = value; } } public string Command { get { return command; } set { this.command = value; } } public string SubEvent { get { return subEvent; } set { this.subEvent = value; } } public string Result { get { return result; } set { this.result = value; } } public int ResultCode { get { return resultCode; } set { this.resultCode = value; } } } }