namespace AsterNET.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
{
///
/// Creates a new DNDStateEvent.
///
public DNDStateEvent(ManagerConnection source)
: base(source)
{
}
///
/// Get/Set DND state of the channel. "enabled" if do not disturb is on, "disabled" if it is off.
///
public string State { get; set; }
///
/// Get/Set DND state of the channel. "enabled" if do not disturb is on, "disabled" if it is off.
///
public string Status { get; set; }
}
}