asternet/Asterisk.2013/Asterisk.NET/Manager/Event/DNDStateEvent.cs

29 lines
994 B
C#
Raw Normal View History

2014-01-08 14:16:39 +00:00
namespace AsterNET.Manager.Event
{
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 channels/chan_zap.c.<br />
2015-01-03 15:37:29 +00:00
/// Available since Asterisk 1.2
/// </summary>
public class DNDStateEvent : ManagerEvent
{
/// <summary>
/// Creates a new DNDStateEvent.
/// </summary>
public DNDStateEvent(ManagerConnection source)
: base(source)
{
}
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; }
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; }
}
}