2014-01-08 14:16:39 +00:00
|
|
|
namespace AsterNET.Manager.Action
|
2013-01-18 15:55:50 +00:00
|
|
|
{
|
2015-01-03 15:37:29 +00:00
|
|
|
/// <summary>
|
|
|
|
/// With the EventsAction you can specify what kind of events should be sent to this manager connection.
|
|
|
|
/// </summary>
|
|
|
|
public class EventsAction : ManagerAction
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Creates a new empty EventsAction.
|
|
|
|
/// </summary>
|
|
|
|
public EventsAction()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Creates a new EventsAction that applies the given event mask to the current manager connection.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="eventMask">
|
|
|
|
/// the event mask.<br />
|
|
|
|
/// 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.
|
|
|
|
/// </param>
|
|
|
|
public EventsAction(string eventMask)
|
|
|
|
{
|
|
|
|
EventMask = eventMask;
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Get the name of this action, i.e. "Events".
|
|
|
|
/// </summary>
|
|
|
|
public override string Action
|
|
|
|
{
|
|
|
|
get { return "Events"; }
|
|
|
|
}
|
2013-01-18 15:55:50 +00:00
|
|
|
|
2015-01-03 15:37:29 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Get/Set the event mask.<br />
|
|
|
|
/// 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.
|
|
|
|
/// </summary>
|
|
|
|
public string EventMask { get; set; }
|
|
|
|
}
|
2013-01-18 15:55:50 +00:00
|
|
|
}
|