namespace AsterNET.Manager.Event { /// /// A MessageWaitingEvent is triggered when someone leaves voicemail.
/// It is implemented in apps/app_voicemail.c ///
public class MessageWaitingEvent : ManagerEvent { private string mailbox; private int waiting; private int newMessages; private int oldMessages; /// /// Get/Set the name of the mailbox that has waiting messages.
/// The name of the mailbox is of the form numberOfMailbox@context, e.g. 1234@default. ///
public string Mailbox { get { return this.mailbox; } set { this.mailbox = value; } } /// /// Get/Set the number of new messages in the mailbox. /// public int Waiting { get { return this.waiting; } set { this.waiting = value; } } /// /// Get/Set the number of new messages in this mailbox. /// public int New { get { return this.newMessages; } set { this.newMessages = value; } } /// /// Get/Set the number of old messages in this mailbox. /// public int Old { get { return this.oldMessages; } set { this.oldMessages = value; } } public MessageWaitingEvent(ManagerConnection source) : base(source) { } } }