asternet/Asterisk.2013/Asterisk.NET/Manager/Response/MailboxStatusResponse.cs

34 lines
1.1 KiB
C#
Raw Normal View History

2014-01-08 14:16:39 +00:00
namespace AsterNET.Manager.Response
{
2015-01-03 15:37:29 +00:00
/// <summary>
/// A MailboxStatusResponse is sent in response to a MailboxStatusAction and indicates if a set
/// of mailboxes contains waiting messages.
/// </summary>
/// <seealso cref="Manager.Action.MailboxStatusAction" />
public class MailboxStatusResponse : ManagerResponse
{
/// <summary> The name of the mailbox.</summary>
private string mailbox;
2015-01-03 15:37:29 +00:00
/// <summary> Indicates if there are new messages waiting in the given set of mailboxes.</summary>
private bool waiting;
/// <summary>
/// Get/Set the names of the mailboxes, separated by ",".
/// </summary>
public string Mailbox
{
get { return mailbox; }
set { this.mailbox = value; }
}
/// <summary>
/// Get/Set true if at least one of the given mailboxes contains new messages, false otherwise.
/// </summary>
public bool Waiting
{
get { return waiting; }
set { this.waiting = value; }
}
}
}