diff --git a/PlantBox.Shared/Communication/Commands/CaptorsRequest.cs b/PlantBox.Shared/Communication/Commands/CaptorsRequest.cs index c6c6e80..f17d4f2 100644 --- a/PlantBox.Shared/Communication/Commands/CaptorsRequest.cs +++ b/PlantBox.Shared/Communication/Commands/CaptorsRequest.cs @@ -7,6 +7,8 @@ namespace PlantBox.Shared.Communication.Commands { public class CaptorsRequest : CommandSerializable { + public override Command Command => Command.Captors; + public override CaptorsRequest Deserialize(string[] arguments) { return this; diff --git a/PlantBox.Shared/Communication/Commands/CaptorsResponse.cs b/PlantBox.Shared/Communication/Commands/CaptorsResponse.cs index 8616d46..b461962 100644 --- a/PlantBox.Shared/Communication/Commands/CaptorsResponse.cs +++ b/PlantBox.Shared/Communication/Commands/CaptorsResponse.cs @@ -8,6 +8,8 @@ namespace PlantBox.Shared.Communication.Commands { public class CaptorsResponse : CommandSerializable { + public override Command Command => Command.Captors; + public double Humidity { get; set; } public double Luminosity { get; set; } public double Temperature { get; set; } diff --git a/PlantBox.Shared/Communication/Commands/HistoricRequest.cs b/PlantBox.Shared/Communication/Commands/HistoricRequest.cs index fe5219d..c02acf5 100644 --- a/PlantBox.Shared/Communication/Commands/HistoricRequest.cs +++ b/PlantBox.Shared/Communication/Commands/HistoricRequest.cs @@ -7,6 +7,8 @@ namespace PlantBox.Shared.Communication.Commands { public class HistoricRequest : CommandSerializable { + public override Command Command => Command.Historic; + public HistoricInterval Interval { get; set; } public int Number { get; set; } diff --git a/PlantBox.Shared/Communication/Commands/PingCommand.cs b/PlantBox.Shared/Communication/Commands/PingCommand.cs index 399cf2e..ac5cd9a 100644 --- a/PlantBox.Shared/Communication/Commands/PingCommand.cs +++ b/PlantBox.Shared/Communication/Commands/PingCommand.cs @@ -6,6 +6,8 @@ namespace PlantBox.Shared.Communication.Commands { public class PingCommand : CommandSerializable { + public override Command Command => Command.Ping; + public string Message { get; set; } public PingCommand()