Protocol/Packets/InvalidPacket.cs

A packet type representing an invalid or unrecognized command in the protocol. It extends APPacket and carries fields for the invalid type, the original command string, and descriptive text, with JSON property name annotations.

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; }
}