using System;
namespace Asterisk.NET.Manager.Action
{
///
/// With the EventsAction you can specify what kind of events should be sent to this manager connection.
///
public class EventsAction : ManagerAction
{
private string eventMask;
///
/// Get the name of this action, i.e. "Events".
///
override public string Action
{
get { return "Events"; }
}
///
/// Get/Set the event mask.
/// Set to "on" if all events should be send, "off" if not events should be
/// sent or a combination of "system", "call" and "log" (separated by ',') to
/// specify what kind of events should be sent.
///
public string EventMask
{
get { return this.eventMask; }
set { this.eventMask = value; }
}
///
/// Creates a new empty EventsAction.
///
public EventsAction()
{
}
///
/// Creates a new EventsAction that applies the given event mask to the current manager connection.
///
/// the event mask.
/// Set to "on" if all events should be send, "off" if not events should be sent
/// or a combination of "system", "call" and "log" (separated by ',') to specify what kind of events should be sent.
///
public EventsAction(string eventMask)
{
this.eventMask = eventMask;
}
}
}