Add default Command to each
This commit is contained in:
@@ -7,6 +7,8 @@ namespace PlantBox.Shared.Communication.Commands
|
||||
{
|
||||
public class CaptorsRequest : CommandSerializable<CaptorsRequest>
|
||||
{
|
||||
public override Command Command => Command.Captors;
|
||||
|
||||
public override CaptorsRequest Deserialize(string[] arguments)
|
||||
{
|
||||
return this;
|
||||
|
||||
@@ -8,6 +8,8 @@ namespace PlantBox.Shared.Communication.Commands
|
||||
{
|
||||
public class CaptorsResponse : CommandSerializable<CaptorsResponse>
|
||||
{
|
||||
public override Command Command => Command.Captors;
|
||||
|
||||
public double Humidity { get; set; }
|
||||
public double Luminosity { get; set; }
|
||||
public double Temperature { get; set; }
|
||||
|
||||
@@ -7,6 +7,8 @@ namespace PlantBox.Shared.Communication.Commands
|
||||
{
|
||||
public class HistoricRequest : CommandSerializable<HistoricRequest>
|
||||
{
|
||||
public override Command Command => Command.Historic;
|
||||
|
||||
public HistoricInterval Interval { get; set; }
|
||||
public int Number { get; set; }
|
||||
|
||||
|
||||
@@ -6,6 +6,8 @@ namespace PlantBox.Shared.Communication.Commands
|
||||
{
|
||||
public class PingCommand : CommandSerializable<PingCommand>
|
||||
{
|
||||
public override Command Command => Command.Ping;
|
||||
|
||||
public string Message { get; set; }
|
||||
|
||||
public PingCommand()
|
||||
|
||||
Reference in New Issue
Block a user