diff --git a/PlantBox.Shared/Communication/Commands/CommandSerializable.cs b/PlantBox.Shared/Communication/Commands/CommandSerializable.cs
index b1b071d..726f980 100644
--- a/PlantBox.Shared/Communication/Commands/CommandSerializable.cs
+++ b/PlantBox.Shared/Communication/Commands/CommandSerializable.cs
@@ -10,6 +10,11 @@ namespace PlantBox.Shared.Communication.Commands
///
public abstract class CommandSerializable where T : new()
{
+ ///
+ /// Default
+ ///
+ public abstract Command Command { get; }
+
///
/// Serialize all the values in a string ,
/// should contains everything to deserialize
@@ -24,6 +29,15 @@ namespace PlantBox.Shared.Communication.Commands
/// initilized accordingly
public abstract T Deserialize(string[] arguments);
+ ///
+ /// Convert a to a , using
+ ///
+ /// A valid id
+ ///
+ public CommandPacket ToCommandPacket(ulong id)
+ {
+ return new CommandPacket(Command, id, Serialize());
+ }
///
/// Convert a to a
///