Files
Shrink-IDC/Lagrange.Core/Lagrange.Core/Internal/Packets/SsoPacket.cs

34 lines
812 B
C#

namespace Lagrange.Core.Internal.Packets;
internal class SsoPacket
{
public byte PacketType { get; set; }
public string Command { get; }
public uint Sequence { get; }
public byte[] Payload { get; }
public int RetCode { get; }
public string? Extra { get; }
public SsoPacket(byte packetType, string command, uint sequence, byte[] payload)
{
PacketType = packetType;
Command = command;
Sequence = sequence;
Payload = payload;
}
public SsoPacket(byte packetType, string command, uint sequence, int retCode, string extra)
{
PacketType = packetType;
Command = command;
Sequence = sequence;
RetCode = retCode;
Payload = Array.Empty<byte>();
Extra = extra;
}
}