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