TcpDotNet/TcpDotNet.ListenerIntegrati.../GoodbyePacket.cs

20 lines
400 B
C#
Raw Permalink Normal View History

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