asternet/Asterisk.2013/Asterisk.NET/Manager/Response/MailboxStatusResponse.cs
2015-01-03 15:37:29 +00:00

34 lines
1.1 KiB
C#

namespace AsterNET.Manager.Response
{
/// <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;
/// <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; }
}
}
}