Protocol/Packets/StatusUpdatePacket.cs

A simple packet class for the AP protocol representing a status update. It sets the JSON command field to "StatusUpdate" and exposes an integer Status property serialized as "status".

using System.Text.Json.Serialization;

namespace APLib.Protocol.Packets;

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