public ConnectResponse(Pop3Response response, Stream networkStream) : base(response.ResponseContents, response.HostMessage, response.StatusIndicator) { if (networkStream == null) { throw new ArgumentNullException("networkStream"); } this._networkStream = networkStream; }
public ListResponse(Pop3Response response, List<Pop3ListItem> items) : base(response.ResponseContents, response.HostMessage, response.StatusIndicator) { if (items == null) { throw new ArgumentNullException("items"); } this._items = items; }
public RetrResponse(Pop3Response response, string[] messageLines) : base(response.ResponseContents, response.HostMessage, response.StatusIndicator) { if (messageLines == null) { throw new ArgumentNullException("messageLines"); } string[] strArray = response.HostMessage.Split(new char[] { ' ' }); if (strArray.Length == 2) { this._octects = Convert.ToInt64(strArray[1]); } this._messageLines = messageLines; }
/// <summary> /// Initializes a new instance of the <see cref="RetrResponse"/> class. /// </summary> /// <param name="response">The response.</param> /// <param name="messageLines">The message lines.</param> public RetrResponse(Pop3Response response, string[] messageLines) : base(response.ResponseContents, response.HostMessage, response.StatusIndicator) { if (messageLines == null) { throw new ArgumentNullException("messageLines"); } string[] values = response.HostMessage.Split(' '); if (values.Length == 2) { _octects = Convert.ToInt64(values[1]); } _messageLines = messageLines; }
/// <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; }