Defines an APPacket subtype InvalidPacket that represents a parsed invalid protocol packet. It sets Command to "Invalid" and exposes Type, OriginalCommand, and Text properties with JSON property name attributes for serialization.
using System.Text.Json.Serialization;
namespace APLib.Protocol.Packets;
public class InvalidPacket : APPacket
{
public override string Command => "Invalid";
[JsonPropertyName( "type" )]
public string Type { get; set; }
[JsonPropertyName( "original_cmd" )]
public string OriginalCommand { get; set; }
[JsonPropertyName( "text" )]
public string Text { get; set; }
}