Protocol/Packets/ReceivedItemsPacket.cs

Defines a packet type ReceivedItemsPacket used in the application's protocol. It specifies a Command string "ReceivedItems" and carries an array of NetworkItem plus an Index integer for ordering or pagination.

using System.Text.Json.Serialization;

namespace APLib.Protocol.Packets;

public sealed class ReceivedItemsPacket : APPacket
{
	[JsonPropertyName( "cmd" )]
	public override string Command => "ReceivedItems";
	
	[JsonPropertyName( "items" )]
	public NetworkItem[] Items { get; set; }
	
	[JsonPropertyName( "index" )]
	public int Index { get; set; }
}