Code/Protocol/Packets/LocationChecksPacket.cs

A simple packet class for the application's protocol that represents a LocationChecks message. It defines the Command string "LocationChecks" and carries a long[] Locations property serialized as "locations" in JSON.

Networking
using System.Text.Json.Serialization;

namespace APLib.Protocol.Packets;

public sealed class LocationChecksPacket : APPacket
{
	public override string Command => "LocationChecks";
	
	[JsonPropertyName( "locations" )]
	public long[] Locations { get; set; }
}