Defines a packet type LocationInfoPacket used by the protocol. It inherits from APPacket, sets Command to "LocationInfo", and exposes a JSON-serializable List<NetworkItem> property named Locations.
using System.Collections.Generic;
using System.Text.Json.Serialization;
namespace APLib.Protocol.Packets;
public sealed class LocationInfoPacket : APPacket
{
public override string Command => "LocationInfo";
[JsonPropertyName( "locations" )]
public List<NetworkItem> Locations { get; set; } = [];
}