implements IKeyName as required on config classes

This commit is contained in:
Neil Dorin
2021-07-15 10:11:27 -06:00
parent 06a3dda2e4
commit 7fd52814a0
2 changed files with 26 additions and 0 deletions

View File

@@ -39,6 +39,12 @@ namespace PepperDash.Essentials.Core
/// </summary>
public class PartitionConfig : IKeyName
{
[JsonProperty("key")]
public string Key { get; set; }
[JsonProperty("name")]
public string Name { get; set; }
/// <summary>
/// Key of the device that implements IPartitionStateProvider to provide the state of the partition
/// </summary>
@@ -57,6 +63,12 @@ namespace PepperDash.Essentials.Core
/// </summary>
public class RoomCombinationScenarioConfig : IKeyName
{
[JsonProperty("key")]
public string Key { get; set; }
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("partitionStates")]
public List<PartitionState> PartitionStates { get; set; }

View File

@@ -4,6 +4,8 @@ using System.Linq;
using System.Text;
using Crestron.SimplSharp;
using Newtonsoft.Json;
namespace PepperDash.Essentials.Core
{
/// <summary>
@@ -11,6 +13,18 @@ namespace PepperDash.Essentials.Core
/// </summary>
public class RoomCombinationScenario: IRoomCombinationScenario
{
[JsonProperty("key")]
public string Key { get; set; }
[JsonProperty("name")]
public string Name { get; set; }
public BoolFeedback IsActive { get; private set; }
public void Activate()
{
}
}