using System;
namespace AsterNET.Manager.Action
{
///
/// The MailboxCountAction queries the number of unread and read messages in a mailbox.
/// The MailboxCountAction returns a MailboxStatusResponse.
///
///
public class MailboxCountAction : ManagerAction
{
private string mailbox;
///
/// Get the name of this action, i.e. "MailboxCount".
///
override public string Action
{
get { return "MailboxCount"; }
}
///
/// Get/Set the name of the mailbox to query.
/// 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.
/// This property is mandatory.
///
public string Mailbox
{
get { return this.mailbox; }
set { this.mailbox = value; }
}
///
/// Creates a new empty MailboxCountAction.
///
public MailboxCountAction()
{
}
///
/// Creates a new MailboxCountAction that queries the number of unread and
/// read messages in the given mailbox.
///
/// the name of the mailbox to query.
/// 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 MailboxCountAction(string mailbox)
{
this.mailbox = mailbox;
}
}
}