namespace Asterisk.NET.Manager.Event { /// /// A DNDStateEvent is triggered by the Zap channel driver when a channel enters /// or leaves DND (do not disturb) state.
/// It is implemented in channels/chan_zap.c.
/// Available since Asterisk 1.2 ///
public class DNDStateEvent : ManagerEvent { private string state; private string status; /// /// Get/Set DND state of the channel. "enabled" if do not disturb is on, "disabled" if it is off. /// public string State { get { return this.state; } set { this.state = value; } } /// /// Get/Set DND state of the channel. "enabled" if do not disturb is on, "disabled" if it is off. /// public string Status { get { return this.status; } set { this.status = value; } } /// /// Creates a new DNDStateEvent. /// public DNDStateEvent(ManagerConnection source) : base(source) { } } }