mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-13 12:37:07 +00:00
feat(essentials): Adds JsonProperty attributes to LightingScene
This commit is contained in:
parent
8e46d575e4
commit
2d64e49f8e
1 changed files with 5 additions and 0 deletions
|
|
@ -113,9 +113,12 @@ namespace PepperDash.Essentials.Core.Lighting
|
||||||
|
|
||||||
public class LightingScene
|
public class LightingScene
|
||||||
{
|
{
|
||||||
|
[JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)]
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
|
[JsonProperty("id", NullValueHandling = NullValueHandling.Ignore)]
|
||||||
public string ID { get; set; }
|
public string ID { get; set; }
|
||||||
bool _IsActive;
|
bool _IsActive;
|
||||||
|
[JsonProperty("isActive", NullValueHandling = NullValueHandling.Ignore)]
|
||||||
public bool IsActive
|
public bool IsActive
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
|
@ -128,6 +131,8 @@ namespace PepperDash.Essentials.Core.Lighting
|
||||||
IsActiveFeedback.FireUpdate();
|
IsActiveFeedback.FireUpdate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
public BoolFeedback IsActiveFeedback { get; set; }
|
public BoolFeedback IsActiveFeedback { get; set; }
|
||||||
|
|
||||||
public LightingScene()
|
public LightingScene()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue