add invoke to bridgeapieisc

This commit is contained in:
Joshua Gutenplan
2019-06-13 20:05:38 -07:00
parent f82816729b
commit 6efec400b8

View File

@@ -14,10 +14,9 @@ using Crestron.SimplSharpPro;
using Crestron.SimplSharpPro.EthernetCommunication; using Crestron.SimplSharpPro.EthernetCommunication;
namespace PepperDash.Essentials namespace PepperDash.Essentials
{
public class BridgeFactory
{ {
public class BridgeFactory
{
public static IKeyed GetDevice(DeviceConfig dc) public static IKeyed GetDevice(DeviceConfig dc)
{ {
// ? why is this static JTA 2018-06-13? // ? why is this static JTA 2018-06-13?
@@ -40,11 +39,11 @@ public class BridgeFactory
return null; return null;
} }
} }
public class CommBridge : Device public class CommBridge : Device
{ {
public CommBridgeProperties Properties { get; private set; } public CommBridgeProperties Properties { get; private set; }
public List<IBasicCommunication> CommDevices { get; private set; } public List<IBasicCommunication> CommDevices { get; private set; }
@@ -87,11 +86,11 @@ public class CommBridge : Device
return true; return true;
} }
} }
public class EiscBridgeProperties public class EiscBridgeProperties
{ {
public string ParentDeviceKey { get; set; } public string ParentDeviceKey { get; set; }
public eApiType ApiType { get; set; } public eApiType ApiType { get; set; }
public List<EiscProperties> Eiscs { get; set; } public List<EiscProperties> Eiscs { get; set; }
@@ -102,17 +101,17 @@ public class EiscBridgeProperties
public string IpId { get; set; } public string IpId { get; set; }
public string Hostname { get; set; } public string Hostname { get; set; }
} }
} }
public class CommBridgeProperties : EiscBridgeProperties public class CommBridgeProperties : EiscBridgeProperties
{ {
public List<string> CommDevices { get; set; } public List<string> CommDevices { get; set; }
} }
public enum eApiType { Eisc = 0 } public enum eApiType { Eisc = 0 }
public class BridgeApiEisc public class BridgeApiEisc
{ {
public uint Ipid { get; private set; } public uint Ipid { get; private set; }
public ThreeSeriesTcpIpEthernetIntersystemCommunications Eisc { get; private set; } public ThreeSeriesTcpIpEthernetIntersystemCommunications Eisc { get; private set; }
@@ -136,6 +135,5 @@ public class BridgeApiEisc
else if (uo is Action<string>) else if (uo is Action<string>)
CrestronInvoke.BeginInvoke(o => (uo as Action<string>)((o as SigEventArgs).Sig.StringValue), args); CrestronInvoke.BeginInvoke(o => (uo as Action<string>)((o as SigEventArgs).Sig.StringValue), args);
} }
}
} }
}