1
0
mirror of https://github.com/oliverbooth/TcpDotNet synced 2024-11-14 16:05:43 +00:00
TcpDotNet/TcpDotNet.ClientIntegrationTest/GoodbyePacket.cs

20 lines
395 B
C#
Raw Normal View History

2024-02-12 17:41:52 +00:00
using TcpDotNet.Protocol;
2022-07-05 14:55:59 +01:00
namespace TcpDotNet.ClientIntegrationTest;
[Packet(0x02)]
internal sealed class GoodbyePacket : Packet
{
public string Message { get; set; }
protected override void Deserialize(ProtocolReader reader)
2022-07-05 14:55:59 +01:00
{
Message = reader.ReadString();
}
protected override void Serialize(ProtocolWriter writer)
2022-07-05 14:55:59 +01:00
{
writer.Write(Message);
}
}