1
0
mirror of https://github.com/oliverbooth/TcpDotNet synced 2024-11-10 03:55:41 +00:00
TcpDotNet/TcpDotNet.ClientIntegrationTest/GoodbyePacket.cs

20 lines
395 B
C#

using TcpDotNet.Protocol;
namespace TcpDotNet.ClientIntegrationTest;
[Packet(0x02)]
internal sealed class GoodbyePacket : Packet
{
public string Message { get; set; }
protected override void Deserialize(ProtocolReader reader)
{
Message = reader.ReadString();
}
protected override void Serialize(ProtocolWriter writer)
{
writer.Write(Message);
}
}