Files
Essentials/Essentials Core/PepperDashEssentialsBase/Crestron IO/Relay/GenericRelayDevice.cs
2017-10-31 11:57:01 -06:00

43 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Crestron.SimplSharp;
using Crestron.SimplSharpPro;
namespace PepperDash.Essentials.Core.Crestron_IO
{
/// <summary>
/// Represents a generic device controlled by relays
/// </summary>
public class GenericRelayDevice
{
//Relay RelayOutput { get; private set; }
//public BoolFeedback RelayStateFeedback { get; private set; }
//Func<bool> RelayStateFeedbackFunc
//{
// get
// {
// return () => RelayOutput.State;
// }
//}
//public GenericRelayDevice(Relay relay)
//{
// RelayStateFeedback = new BoolFeedback(RelayStateFeedbackFunc);
// if(relay.AvailableForUse)
// RelayOutput = relay;
// RelayOutput.StateChange += new RelayEventHandler(RelayOutput_StateChange);
//}
//void RelayOutput_StateChange(Relay relay, RelayEventArgs args)
//{
// RelayStateFeedback.FireUpdate();
//}
}
}