#740 Adds IPartitionStateProvider interface and adds to GlsParitionSensorController

This commit is contained in:
Neil Dorin
2021-07-14 14:38:18 -06:00
parent 3b843104d8
commit 4c50d6980f
2 changed files with 17 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ using PepperDash.Essentials.Core.Config;
namespace PepperDash.Essentials.Core
{
[Description("Wrapper class for GLS Cresnet Partition Sensor")]
public class GlsPartitionSensorController : CrestronGenericBridgeableBaseDevice
public class GlsPartitionSensorController : CrestronGenericBridgeableBaseDevice, IPartitionStateProvider
{
private GlsPartCn _partitionSensor;

View File

@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Crestron.SimplSharp;
namespace PepperDash.Essentials.Core
{
/// <summary>
/// Describes the functionality of a device that senses and provides partition state
/// </summary>
public interface IPartitionStateProvider
{
BoolFeedback PartitionSensedFeedback { get; }
}
}