2014-01-08 14:16:39 +00:00
|
|
|
namespace AsterNET.Manager.Event
|
2013-01-18 15:55:50 +00:00
|
|
|
{
|
2015-01-03 15:37:29 +00:00
|
|
|
/// <summary>
|
|
|
|
/// A DNDStateEvent is triggered by the Zap channel driver when a channel enters
|
|
|
|
/// or leaves DND (do not disturb) state.<br />
|
|
|
|
/// It is implemented in <code>channels/chan_zap.c</code>.<br />
|
|
|
|
/// Available since Asterisk 1.2
|
|
|
|
/// </summary>
|
|
|
|
public class DNDStateEvent : ManagerEvent
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Creates a new DNDStateEvent.
|
|
|
|
/// </summary>
|
|
|
|
public DNDStateEvent(ManagerConnection source)
|
|
|
|
: base(source)
|
|
|
|
{
|
|
|
|
}
|
2013-01-18 15:55:50 +00:00
|
|
|
|
2015-01-03 15:37:29 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Get/Set DND state of the channel. "enabled" if do not disturb is on, "disabled" if it is off.
|
|
|
|
/// </summary>
|
|
|
|
public string State { get; set; }
|
2013-01-18 15:55:50 +00:00
|
|
|
|
2015-01-03 15:37:29 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Get/Set DND state of the channel. "enabled" if do not disturb is on, "disabled" if it is off.
|
|
|
|
/// </summary>
|
|
|
|
public string Status { get; set; }
|
|
|
|
}
|
2013-01-18 15:55:50 +00:00
|
|
|
}
|