mirror of
https://github.com/simtactics/mysimulation.git
synced 2025-03-26 03:09:10 +00:00
26 lines
640 B
C#
26 lines
640 B
C#
|
using FSO.Common.Serialization;
|
|||
|
using Mina.Core.Buffer;
|
|||
|
|
|||
|
namespace FSO.Server.Protocol.Aries.Packets
|
|||
|
{
|
|||
|
public class RequestChallengeResponse : IAriesPacket
|
|||
|
{
|
|||
|
public string Challenge;
|
|||
|
|
|||
|
public void Deserialize(IoBuffer input, ISerializationContext context)
|
|||
|
{
|
|||
|
Challenge = input.GetPascalVLCString();
|
|||
|
}
|
|||
|
|
|||
|
public AriesPacketType GetPacketType()
|
|||
|
{
|
|||
|
return AriesPacketType.RequestChallengeResponse;
|
|||
|
}
|
|||
|
|
|||
|
public void Serialize(IoBuffer output, ISerializationContext context)
|
|||
|
{
|
|||
|
output.PutPascalVLCString(Challenge);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|