diff --git a/Essentials Core/PepperDashEssentialsBase/Crestron IO/Inputs/GenericVersiportInputDevice.cs b/Essentials Core/PepperDashEssentialsBase/Crestron IO/Inputs/GenericVersiportInputDevice.cs new file mode 100644 index 00000000..d9a60f6b --- /dev/null +++ b/Essentials Core/PepperDashEssentialsBase/Crestron IO/Inputs/GenericVersiportInputDevice.cs @@ -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 +{ + /// + /// Represents a generic digital input deviced tied to a versiport + /// + public class GenericVersiportInputDevice + { + //Versiport InputPort {get; private set;} + + //BoolFeedback InputStateFeedback {get; private set;} + + //Func 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(); + //} + } +} \ No newline at end of file diff --git a/Essentials Core/PepperDashEssentialsBase/Crestron IO/Inputs/IDigitalInput.cs b/Essentials Core/PepperDashEssentialsBase/Crestron IO/Inputs/IDigitalInput.cs new file mode 100644 index 00000000..7ed86822 --- /dev/null +++ b/Essentials Core/PepperDashEssentialsBase/Crestron IO/Inputs/IDigitalInput.cs @@ -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 + { + + } +} \ No newline at end of file diff --git a/Essentials Core/PepperDashEssentialsBase/Crestron IO/Relay/GenericRelayDevice.cs b/Essentials Core/PepperDashEssentialsBase/Crestron IO/Relay/GenericRelayDevice.cs new file mode 100644 index 00000000..63f04304 --- /dev/null +++ b/Essentials Core/PepperDashEssentialsBase/Crestron IO/Relay/GenericRelayDevice.cs @@ -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 +{ + /// + /// Represents a generic device controlled by relays + /// + public class GenericRelayDevice + { + //Relay RelayOutput { get; private set; } + + //public BoolFeedback RelayStateFeedback { get; private set; } + + //Func 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(); + //} + } +} \ No newline at end of file diff --git a/Essentials Core/PepperDashEssentialsBase/PepperDash_Essentials_Core.csproj b/Essentials Core/PepperDashEssentialsBase/PepperDash_Essentials_Core.csproj index 74ad5cf6..a3004a17 100644 --- a/Essentials Core/PepperDashEssentialsBase/PepperDash_Essentials_Core.csproj +++ b/Essentials Core/PepperDashEssentialsBase/PepperDash_Essentials_Core.csproj @@ -24,7 +24,7 @@ true full false - bin\ + ..\..\Release Package\ DEBUG;TRACE; prompt 4 @@ -71,9 +71,9 @@ ..\..\..\..\..\..\..\ProgramData\Crestron\SDK\SSPDevices\Crestron.SimplSharpPro.UI.dll - + False - ..\..\..\pepperdash-simplsharp-core\Pepperdash Core\CLZ Builds\PepperDash_Core.dll + ..\..\..\PepperDash.Core\Pepperdash Core\Pepperdash Core\bin\PepperDash_Core.dll False @@ -103,6 +103,9 @@ + + + diff --git a/Essentials/PepperDashEssentials/PepperDashEssentials.csproj b/Essentials/PepperDashEssentials/PepperDashEssentials.csproj index d33e0d31..fe29995d 100644 --- a/Essentials/PepperDashEssentials/PepperDashEssentials.csproj +++ b/Essentials/PepperDashEssentials/PepperDashEssentials.csproj @@ -79,9 +79,9 @@ False ..\..\..\pepperdash-portal-sync\SspPortalSync\SspPortalSync\bin\PepperDashCorePortalSync.dll - + False - ..\..\..\pepperdash-simplsharp-core\Pepperdash Core\CLZ Builds\PepperDash_Core.dll + ..\..\..\PepperDash.Core\Pepperdash Core\Pepperdash Core\bin\PepperDash_Core.dll False diff --git a/Release Package/PepperDashEssentials.cpz b/Release Package/PepperDashEssentials.cpz index 872717dc..e464bd9f 100644 Binary files a/Release Package/PepperDashEssentials.cpz and b/Release Package/PepperDashEssentials.cpz differ diff --git a/Release Package/PepperDashEssentials.dll b/Release Package/PepperDashEssentials.dll index cff85298..96251b59 100644 Binary files a/Release Package/PepperDashEssentials.dll and b/Release Package/PepperDashEssentials.dll differ