using System;
namespace Asterisk.NET.Manager.Action
{
///
/// The MailboxStatusAction checks if a mailbox contains waiting messages.
/// The MailboxStatusAction returns a MailboxStatusResponse.
///
///
public class MailboxStatusAction : ManagerAction
{
private string mailbox;
///
/// Get the name of this action, i.e. "MailboxStatus".
///
override public string Action
{
get { return "MailboxStatus"; }
}
///
/// Get/Set the name of the mailbox to query.
/// This can either be only the name of the mailbox or a string of the form
/// mailboxnumber@context. If no context is specified "default" is assumed.
/// Multiple mailboxes may be given, separated by ','. In this case the
/// action checks whether at least one of the given mailboxes has waiting
/// messages.
/// This property is mandatory.
/// Example: "1234,1235@mycontext"
///
public string Mailbox
{
get { return this.mailbox; }
set { this.mailbox = value; }
}
///
/// Creates a new empty MailboxStatusAction.
///
public MailboxStatusAction()
{
}
///
/// Creates a new MailboxStatusAction that checks for waiting messages in the given mailbox.
///
/// the name of the mailbox to check.
/// This can either be only the number of the mailbox or a string
/// of the form mailboxnumber@context.If no context is specified
/// "default" is assumed.
///
public MailboxStatusAction(string mailbox)
{
this.mailbox = mailbox;
}
}
}