2014-01-08 14:16:39 +00:00
|
|
|
namespace AsterNET.Manager.Response
|
2013-01-18 15:55:50 +00:00
|
|
|
{
|
2015-01-03 15:37:29 +00:00
|
|
|
/// <summary>
|
|
|
|
/// A MailboxCountResponse is sent in response to a MailboxCountAction and contains the number of old
|
|
|
|
/// and new messages in a mailbox.
|
|
|
|
/// </summary>
|
|
|
|
/// <seealso cref="Manager.Action.MailboxCountAction" />
|
|
|
|
public class MailboxCountResponse : ManagerResponse
|
|
|
|
{
|
|
|
|
private string mailbox;
|
|
|
|
private int newMessages;
|
|
|
|
private int oldMessages;
|
2013-01-18 15:55:50 +00:00
|
|
|
|
2015-01-03 15:37:29 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Get/Set the name of the mailbox.
|
|
|
|
/// </summary>
|
|
|
|
public string Mailbox
|
|
|
|
{
|
|
|
|
get { return mailbox; }
|
|
|
|
set { this.mailbox = value; }
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Get/Set the number of new messages in the mailbox.
|
|
|
|
/// </summary>
|
|
|
|
public int NewMessages
|
|
|
|
{
|
|
|
|
get { return newMessages; }
|
|
|
|
set { this.newMessages = value; }
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Returns the number of old messages in the mailbox.
|
|
|
|
/// </summary>
|
|
|
|
public int OldMessages
|
|
|
|
{
|
|
|
|
get { return oldMessages; }
|
|
|
|
set { this.oldMessages = value; }
|
|
|
|
}
|
|
|
|
}
|
2013-01-18 15:55:50 +00:00
|
|
|
}
|