using System; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; using HigLabo.Net.Mail; namespace HigLabo.Net.Pop3 { /// <summary>Represents list command. /// </summary> public class ListCommand : Pop3Command { private Int64? _MailIndex = null; /// <summary> /// /// </summary> public override String Name { get { return "List"; } } /// <summary> /// /// </summary> public Int64? MailIndex { get { return this._MailIndex; } set { this._MailIndex = value; } } /// <summary> /// /// </summary> public ListCommand() { } /// <summary> /// /// </summary> /// <param name="mailIndex"></param> public ListCommand(Int64 mailIndex) { if (mailIndex < 1) { throw new ArgumentException(); } this._MailIndex = mailIndex; } /// <summary> /// /// </summary> /// <returns></returns> public override String GetCommandString() { if (_MailIndex.HasValue == true) { return String.Format("{0} {1}", this.Name, this._MailIndex); } return this.Name; } } }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The MIT License