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

35 lines
1.1 KiB
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 MessageWaitingEvent is triggered when someone leaves voicemail.<br />
/// It is implemented in <code>apps/app_voicemail.c</code>
/// </summary>
public class MessageWaitingEvent : ManagerEvent
{
public MessageWaitingEvent(ManagerConnection source)
: base(source)
{
}
2015-01-03 15:37:29 +00:00
/// <summary>
/// Get/Set the name of the mailbox that has waiting messages.<br />
/// The name of the mailbox is of the form numberOfMailbox@context, e.g. 1234@default.
/// </summary>
public string Mailbox { get; set; }
/// <summary>
/// Get/Set the number of new messages in the mailbox.
/// </summary>
public int Waiting { get; set; }
/// <summary>
/// Get/Set the number of new messages in this mailbox.
/// </summary>
public int New { get; set; }
/// <summary>
/// Get/Set the number of old messages in this mailbox.
/// </summary>
public int Old { get; set; }
}
}