Prep for merge into development for NYU deployment

This commit is contained in:
Neil Dorin
2017-10-31 11:57:01 -06:00
parent f564a2f554
commit b1742675c2
7 changed files with 107 additions and 5 deletions

View File

@@ -0,0 +1,43 @@
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 digital input deviced tied to a versiport
/// </summary>
public class GenericVersiportInputDevice
{
//Versiport InputPort {get; private set;}
//BoolFeedback InputStateFeedback {get; private set;}
//Func<bool> InputStateFeedbackFunc
//{
// get
// {
// return () => InputPort.DigitalIn;
// }
//}
//public GenericVersiportInputDevice(Versiport inputPort)
//{
// InputStateFeedback = new BoolFeedback(InputStateFeedbackFunc);
// InputPort = inputPort;
// InputPort.VersiportChange += new VersiportEventHandler(InputPort_VersiportChange);
//}
//void InputPort_VersiportChange(Versiport port, VersiportEventArgs args)
//{
// InputStateFeedback.FireUpdate();
//}
}
}

View File

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Crestron.SimplSharp;
namespace PepperDash.Essentials.Core.Crestron_IO
{
public interface IDigitalInput
{
}
}

View File

@@ -0,0 +1,43 @@
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();
//}
}
}