using System; namespace Ant.Service.Utilities { /// /// This class represents the results from the execution /// of a pop3 STAT command. /// public sealed class Stat { private int _messageCount; /// /// Gets or sets the message count. /// /// The message count. public int MessageCount { get { return _messageCount; } set { _messageCount = value; } } private long _octets; /// /// Gets or sets the octets. /// /// The octets. public long Octets { get { return _octets; } set { _octets = value; } } /// /// Initializes a new instance of the class. /// /// The message count. /// The octets. public Stat(int messageCount, long octets) { if (messageCount < 0) { throw new ArgumentOutOfRangeException("messageCount"); } if (octets < 0) { throw new ArgumentOutOfRangeException("octets"); } _messageCount = messageCount; _octets = octets; } } }