Added GoveeService that unites Api and Udp Service
Added ColorTemp Method to Udp Service
This commit is contained in:
9
GoveeCSharpConnector/Objects/GoveeDevice.cs
Normal file
9
GoveeCSharpConnector/Objects/GoveeDevice.cs
Normal file
@ -0,0 +1,9 @@
|
||||
namespace GoveeCSharpConnector.Objects;
|
||||
|
||||
public class GoveeDevice
|
||||
{
|
||||
public string DeviceId { get; set; }
|
||||
public string Model { get; set; }
|
||||
public string DeviceName { get; set; }
|
||||
public string Address { get; set; }
|
||||
}
|
11
GoveeCSharpConnector/Objects/GoveeState.cs
Normal file
11
GoveeCSharpConnector/Objects/GoveeState.cs
Normal file
@ -0,0 +1,11 @@
|
||||
using GoveeCSharpConnector.Enums;
|
||||
|
||||
namespace GoveeCSharpConnector.Objects;
|
||||
|
||||
public class GoveeState
|
||||
{
|
||||
public PowerState State { get; set; }
|
||||
public int Brightness { get; set; }
|
||||
public RgbColor Color { get; set; }
|
||||
public int ColorTempInKelvin { get; set; }
|
||||
}
|
@ -7,6 +7,6 @@ public class Properties
|
||||
public bool Online { get; set; }
|
||||
public PowerState PowerState { get; set; }
|
||||
public int Brightness { get; set; }
|
||||
public int? ColorTemp { get; set; }
|
||||
public int ColorTemp { get; set; }
|
||||
public RgbColor Color { get; set; }
|
||||
}
|
Reference in New Issue
Block a user