Code/Protocol/Packets/InvalidPacket.cs

A protocol packet type representing an invalid or unrecognized message. It inherits APPacket and defines JSON-serializable properties for the invalid type, original command, and explanatory text.

using System.Text.Json.Serialization;

namespace APLib.Protocol.Packets;

public class InvalidPacket : APPacket
{
	[JsonPropertyName( "cmd" )]
	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; }
}