Code/Protocol/Packets/StatusUpdatePacket.cs

A small packet type used by the protocol layer. It defines a StatusUpdate packet with a Command name and an integer Status property serialized as "status".

using System.Text.Json.Serialization;

namespace APLib.Protocol.Packets;

public sealed class StatusUpdatePacket : APPacket
{
	public override string Command => "StatusUpdate";
	
	[JsonPropertyName( "status" )]
	public int Status { get; set; }
}