Move CaptorsCommand to CaptorsResponse
This commit is contained in:
@@ -6,24 +6,24 @@ using System.Text;
|
||||
|
||||
namespace PlantBox.Shared.Communication.Commands
|
||||
{
|
||||
class CaptorsCommand : CommandSerializable<CaptorsCommand>
|
||||
public class CaptorsResponse : CommandSerializable<CaptorsResponse>
|
||||
{
|
||||
public double Humidity { get; set; }
|
||||
public double Luminosity { get; set; }
|
||||
public double Temperature { get; set; }
|
||||
|
||||
public CaptorsCommand()
|
||||
public CaptorsResponse()
|
||||
{
|
||||
|
||||
}
|
||||
public CaptorsCommand(double humidity, double luminosity, double temperature)
|
||||
public CaptorsResponse(double humidity, double luminosity, double temperature)
|
||||
{
|
||||
Humidity = humidity;
|
||||
Luminosity = luminosity;
|
||||
Temperature = temperature;
|
||||
}
|
||||
|
||||
public override CaptorsCommand Deserialize(string[] arguments)
|
||||
public override CaptorsResponse Deserialize(string[] arguments)
|
||||
{
|
||||
if (arguments == null)
|
||||
{
|
||||
Reference in New Issue
Block a user