47 lines
1.3 KiB
C#
47 lines
1.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Net.Mail
|
|
{
|
|
/// <summary>
|
|
/// This class represents the resulting Pop3 response from a STAT command
|
|
/// executed against a Pop3 server.
|
|
/// </summary>
|
|
internal sealed class StatResponse : Pop3Response
|
|
{
|
|
private int _messageCount;
|
|
/// <summary>
|
|
/// Gets the message count.
|
|
/// </summary>
|
|
/// <value>The message count.</value>
|
|
public int MessageCount
|
|
{
|
|
get { return _messageCount; }
|
|
}
|
|
|
|
private long _octets;
|
|
/// <summary>
|
|
/// Gets the octets.
|
|
/// </summary>
|
|
/// <value>The octets.</value>
|
|
public long Octets
|
|
{
|
|
get { return _octets; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="StatResponse"/> class.
|
|
/// </summary>
|
|
/// <param name="response">The response.</param>
|
|
/// <param name="messageCount">The message count.</param>
|
|
/// <param name="octets">The octets.</param>
|
|
public StatResponse(Pop3Response response, int messageCount, long octets)
|
|
: base(response.ResponseContents, response.HostMessage, response.StatusIndicator)
|
|
{
|
|
_messageCount = messageCount;
|
|
_octets = octets;
|
|
}
|
|
}
|
|
}
|