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
{
///
/// 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)
{
Mailbox = mailbox;
}
///
/// Get the name of this action, i.e. "MailboxCount".
///
public override 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; set; }
}
}