diff --git a/Pepperdash Core/Pepperdash Core/EventArgs and Constants.cs b/Pepperdash Core/Pepperdash Core/EventArgs and Constants.cs new file mode 100644 index 0000000..18bb1c7 --- /dev/null +++ b/Pepperdash Core/Pepperdash Core/EventArgs and Constants.cs @@ -0,0 +1,110 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using Crestron.SimplSharp; + +namespace PepperDash.Core +{ + + //**************************************************************************************************// + public delegate void SPlusValuesDelegate(); + + public class SPlusValueWrapper + { + public SPlusType ValueType { get; private set; } + public ushort Index { get; private set; } + public ushort BoolUShortValue { get; set; } + public string StringValue { get; set; } + + public SPlusValueWrapper() { } + + public SPlusValueWrapper(SPlusType type, ushort index) + { + ValueType = type; + Index = index; + } + } + + public enum SPlusType + { + Digital, Analog, String + } + + + //**************************************************************************************************// + public class BoolChangeEventArgs : EventArgs + { + public bool State { get; set; } + public ushort IntValue { get { return (ushort)(State ? 1 : 0); } } + public ushort Type { get; set; } + public ushort Index { get; set; } + + public BoolChangeEventArgs() + { + } + + public BoolChangeEventArgs(bool state, ushort type) + { + State = state; + Type = type; + } + + public BoolChangeEventArgs(bool state, ushort type, ushort index) + { + State = state; + Type = type; + Index = index; + } + } + + //**************************************************************************************************// + public class UshrtChangeEventArgs : EventArgs + { + public ushort IntValue { get; set; } + public ushort Type { get; set; } + public ushort Index { get; set; } + + public UshrtChangeEventArgs() + { + } + + public UshrtChangeEventArgs(ushort intValue, ushort type) + { + IntValue = intValue; + Type = type; + } + + public UshrtChangeEventArgs(ushort intValue, ushort type, ushort index) + { + IntValue = intValue; + Type = type; + Index = index; + } + } + + //**************************************************************************************************// + public class StringChangeEventArgs : EventArgs + { + public string StringValue { get; set; } + public ushort Type { get; set; } + public ushort Index { get; set; } + + public StringChangeEventArgs() + { + } + + public StringChangeEventArgs(string stringValue, ushort type) + { + StringValue = stringValue; + Type = type; + } + + public StringChangeEventArgs(string stringValue, ushort type, ushort index) + { + StringValue = stringValue; + Type = type; + Index = index; + } + } +} \ No newline at end of file diff --git a/Pepperdash Core/Pepperdash Core/PepperDash_Core.csproj b/Pepperdash Core/Pepperdash Core/PepperDash_Core.csproj index e9d2a9f..a9a6778 100644 --- a/Pepperdash Core/Pepperdash Core/PepperDash_Core.csproj +++ b/Pepperdash Core/Pepperdash Core/PepperDash_Core.csproj @@ -72,6 +72,7 @@ + @@ -84,7 +85,7 @@ C:\Users\hvolm\Desktop\working\pepperdash-simplsharp-core\Pepperdash Core\Pepperdash Core\bin\PepperDash_Core.clz 1.007.0017 - 8/15/2016 1:54:57 PM + 9/2/2016 11:13:46 AM False diff --git a/Pepperdash Core/Pepperdash Core/bin/PepperDash_Core.clz b/Pepperdash Core/Pepperdash Core/bin/PepperDash_Core.clz index 4a371be..a1faa5a 100644 Binary files a/Pepperdash Core/Pepperdash Core/bin/PepperDash_Core.clz and b/Pepperdash Core/Pepperdash Core/bin/PepperDash_Core.clz differ diff --git a/Pepperdash Core/Pepperdash Core/bin/PepperDash_Core.config b/Pepperdash Core/Pepperdash Core/bin/PepperDash_Core.config index 954789f..3d9d7a9 100644 --- a/Pepperdash Core/Pepperdash Core/bin/PepperDash_Core.config +++ b/Pepperdash Core/Pepperdash Core/bin/PepperDash_Core.config @@ -10,7 +10,7 @@ - 8/15/2016 1:54:57 PM - 1.0.0.23247 + 9/2/2016 11:13:46 AM + 1.0.0.18412 \ No newline at end of file diff --git a/Pepperdash Core/Pepperdash Core/bin/manifest.info b/Pepperdash Core/Pepperdash Core/bin/manifest.info index 8177273..bcae14b 100644 --- a/Pepperdash Core/Pepperdash Core/bin/manifest.info +++ b/Pepperdash Core/Pepperdash Core/bin/manifest.info @@ -1,4 +1,4 @@ -MainAssembly=PepperDash_Core.dll:cedcf6ddcb42b121da13ff559d7178d3 +MainAssembly=PepperDash_Core.dll:1b8fe52abb2cd78b374987bb89064191 MainAssemblyMinFirmwareVersion=1.007.0017 ü DependencySource=Newtonsoft.Json.Compact.dll:ea996aa2ec65aa1878e7c9d09e37a896 diff --git a/Pepperdash Core/Pepperdash Core/bin/manifest.ser b/Pepperdash Core/Pepperdash Core/bin/manifest.ser index 45590c3..b70a9e2 100644 Binary files a/Pepperdash Core/Pepperdash Core/bin/manifest.ser and b/Pepperdash Core/Pepperdash Core/bin/manifest.ser differ