SftpResponse
using System;
namespace Renci.SshNet.Sftp.Responses
{
internal abstract class SftpResponse : SftpMessage
{
public uint ResponseId { get; set; }
public uint ProtocolVersion { get; set; }
protected SftpResponse(uint protocolVersion)
{
ProtocolVersion = protocolVersion;
}
protected override void LoadData()
{
base.LoadData();
ResponseId = ReadUInt32();
}
protected override void SaveData()
{
throw new InvalidOperationException("Response cannot be saved.");
}
}
}