mirror of
https://github.com/cccb/servicepoint.git
synced 2025-01-19 10:20:12 +01:00
17 lines
356 B
C#
17 lines
356 B
C#
using System.Diagnostics.CodeAnalysis;
|
|
|
|
namespace ServicePoint;
|
|
|
|
public sealed partial class Command
|
|
{
|
|
public static bool TryFromPacket(Packet packet, [MaybeNullWhen(false)] out Command command)
|
|
{
|
|
return (command = TryFromPacket(packet)) != null;
|
|
}
|
|
|
|
public Packet IntoPacket()
|
|
{
|
|
return Packet.FromCommand(this);
|
|
}
|
|
}
|