using System; namespace Ant.Service.Utilities { /// /// This class represents an item returned from the /// Pop3 LIST command. /// public class Pop3ListItem { private int _messageNumber; /// /// Gets or sets the message number. /// /// The message number. public int MessageId { get { return _messageNumber; } set { _messageNumber = 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 number. /// The octets. public Pop3ListItem(int messageNumber, long octets) { if (messageNumber < 0) { throw new ArgumentOutOfRangeException("messageNumber"); } if (octets < 1) { throw new ArgumentOutOfRangeException("octets"); } _messageNumber = messageNumber; _octets = octets; } } }