Protocol/Packets/InvalidPacket.cs

Defines an InvalidPacket class used in the protocol layer. It inherits from APPacket and exposes JSON-serializable properties Command (set to "Invalid"), Type, OriginalCommand, and 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; }
}